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

Error in stop_if_wrong_length("'seqnames'", ans_len) : 'seqnames' must have the length of the object to construct (1) or length 1 #50

Open
sopenaml opened this issue Jan 29, 2025 · 2 comments

Comments

@sopenaml
Copy link

Hi,

I've encountered the same ERROR than in here when using geom_transcript however geom_gene works, so I'm very confused about it. I would be very grateful if you could help. Below is my GTF and my track_df in case that helps. I'm running ggcoverage_1.4.1 in R-4.3.2.

GRanges object with 2737559 ranges and 22 metadata columns:
            seqnames      ranges strand |   source       type     score
               <Rle>   <IRanges>  <Rle> | <factor>   <factor> <numeric>
        [1]        1 11869-14409      + |   havana gene              NA
        [2]        1 11869-14409      + |   havana transcript        NA
        [3]        1 11869-12227      + |   havana exon              NA
        [4]        1 12010-13670      + |   havana transcript        NA
        [5]        1 12010-12057      + |   havana exon              NA
        ...      ...         ...    ... .      ...        ...       ...
  [2737555]       MT 15888-15953      + |  ensembl transcript        NA
  [2737556]       MT 15888-15953      + |  ensembl exon              NA
  [2737557]       MT 15956-16023      - |  insdc   gene              NA
  [2737558]       MT 15956-16023      - |  ensembl transcript        NA
  [2737559]       MT 15956-16023      - |  ensembl exon              NA

and this is my track_df

  seqnames    start      end width strand score           Type        Group
1        1 35184587 35184588     2      *    53 ctrl1_ipsc_HMW ipscCtrl_HMW
2        1 35184585 35184586     2      *    55 ctrl1_ipsc_HMW ipscCtrl_HMW
3        1 35184578 35184581     4      *    40 ctrl1_ipsc_HMW ipscCtrl_HMW
4        1 35184582 35184582     1      *    42 ctrl1_ipsc_HMW ipscCtrl_HMW
5        1 35184583 35184583     1      *    45 ctrl1_ipsc_HMW ipscCtrl_HMW
6        1 35184584 35184584     1      *    47 ctrl1_ipsc_HMW ipscCtrl_HMW

Thank you very much,

Miriam

@m-jahn
Copy link
Collaborator

m-jahn commented Jan 31, 2025

Dear @sopenaml, I will take a look at this as soon as I find time.

@m-jahn
Copy link
Collaborator

m-jahn commented Jan 31, 2025

What is the code you have executed to get this error?

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

2 participants