Skip to content

simulate_experiment() fails when idfield (default: "transcript_id") is not present in the first line of the gtf file #68

@alorchhota

Description

@alorchhota

simulate_experiment() fails when idfield (dafault = "transcript_id") is not present in the first row (did not check later rows) of the gtf file. The error is, I believe, in the 2nd line of the following code, because getAttributeField() returns NA.

names(these_seqs) = getAttributeField(dftmp$attributes, idfield, attrsep = attrsep)
if (substr(names(these_seqs)[1], 1, 1) == "\"") {
        x = names(these_seqs)
        names(these_seqs) = substr(x, 2, nchar(x) - 1)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions