-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Description
I get the following error when trying to add gene or transcript annotations to the coverage plot:
Error in stop_if_wrong_length("'seqnames'", ans_len) :
'seqnames' must have the length of the object to construct (1) or
length 1
I checked, and the seqnames
of the gene/transcript annotation are overlapping the one shown in the plot, so I don't know what causes this error. It is produced by a function that creates new GRanges object under the hood, but I couldn't figure out why.
The gtf file I am loading looks like this:
GRanges object with 360449 ranges and 9 metadata columns:
seqnames ranges strand | source type score
<Rle> <IRanges> <Rle> | <factor> <factor> <numeric>
[1] NC_064034.1 555751-623986 - | Gnomon transcript NA
[2] NC_064034.1 555751-556233 - | Gnomon exon NA
[3] NC_064034.1 557679-557838 - | Gnomon exon NA
[4] NC_064034.1 558967-559103 - | Gnomon exon NA
[5] NC_064034.1 559356-559885 - | Gnomon exon NA
... ... ... ... . ... ... ...
[360445] NC_064048.1 13228100-13228198 - | Gnomon exon NA
[360446] NC_064048.1 13228331-13228935 - | Gnomon exon NA
[360447] NC_064048.1 13227468-13227632 - | Gnomon CDS NA
[360448] NC_064048.1 13228100-13228198 - | Gnomon CDS NA
[360449] NC_064048.1 13228331-13228558 - | Gnomon CDS NA
phase transcript_id gene_id gene_name
<integer> <character> <character> <character>
[1] <NA> Nvec_vc1.1_XM_032374.. Nvec_vc1.1_LOC116613.. LOC116613690
[2] <NA> Nvec_vc1.1_XM_032374.. Nvec_vc1.1_LOC116613.. LOC116613690
[3] <NA> Nvec_vc1.1_XM_032374.. Nvec_vc1.1_LOC116613.. LOC116613690
[4] <NA> Nvec_vc1.1_XM_032374.. Nvec_vc1.1_LOC116613.. LOC116613690
[5] <NA> Nvec_vc1.1_XM_032374.. Nvec_vc1.1_LOC116613.. LOC116613690
... ... ... ... ...
[360445] <NA> Nvec_vc1.1_XM_048723.. Nvec_vc1.1_LOC125560.. LOC125560762
[360446] <NA> Nvec_vc1.1_XM_048723.. Nvec_vc1.1_LOC125560.. LOC125560762
[360447] 0 Nvec_vc1.1_XM_048723.. Nvec_vc1.1_LOC125560.. LOC125560762
[360448] 0 Nvec_vc1.1_XM_048723.. Nvec_vc1.1_LOC125560.. LOC125560762
[360449] 0 Nvec_vc1.1_XM_048723.. Nvec_vc1.1_LOC125560.. LOC125560762
transcript_name gene_type
<character> <character>
[1] Nvec_vc1.1_XM_032374.. protein_coding
[2] Nvec_vc1.1_XM_032374.. protein_coding
[3] Nvec_vc1.1_XM_032374.. protein_coding
[4] Nvec_vc1.1_XM_032374.. protein_coding
[5] Nvec_vc1.1_XM_032374.. protein_coding
... ... ...
[360445] Nvec_vc1.1_XM_048723.. protein_coding
[360446] Nvec_vc1.1_XM_048723.. protein_coding
[360447] Nvec_vc1.1_XM_048723.. protein_coding
[360448] Nvec_vc1.1_XM_048723.. protein_coding
[360449] Nvec_vc1.1_XM_048723.. protein_coding
-------
seqinfo: 31 sequences from an unspecified genome; no seqlengths
And the regions are:
seqnames start end score Type
1: NC_064034.1 554751 555575 0.00000000 muscle_1
2: NC_064034.1 555576 555600 0.04792738 muscle_1
3: NC_064034.1 555601 555650 0.00000000 muscle_1
4: NC_064034.1 555651 555700 0.09585476 muscle_1
5: NC_064034.1 555701 555725 0.00000000 muscle_1
---
26: NC_064034.1 556176 558125 0.00000000 muscle_2
27: NC_064034.1 558126 558175 0.07412679 muscle_2
28: NC_064034.1 558176 559350 0.00000000 muscle_2
29: NC_064034.1 559351 559400 0.07412679 muscle_2
30: NC_064034.1 559401 560885 0.00000000 muscle_2
I also attache the files to reproduce this, if it may help. Hope you could have an idea that will narrow down the source of the problem.
Thanks,
Anamaria
Metadata
Metadata
Assignees
Labels
No labels