Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alorchhota opened this issue Oct 9, 2019 · 0 comments

Comments

@alorchhota
Copy link

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)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant