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 seq.default(start, max(start + 1, end - 4), by = 2425) #33

Closed
archana433 opened this issue May 11, 2020 · 9 comments
Closed

Error in seq.default(start, max(start + 1, end - 4), by = 2425) #33

archana433 opened this issue May 11, 2020 · 9 comments
Labels

Comments

@archana433
Copy link

archana433 commented May 11, 2020

$ ./sashimi-plot.py -b input_bam.tsv -g nochr_gencode_exon_transcript.gtf -c 2:29,619,720-29,740,978 -M 10 --base-size=20 --ann-height=4 --height=3 --width=18 -P palette.txt

Error in seq.default(start, max(start + 1, end - 4), by = 2425) :
'from' must be of length 1
Calls: rbind -> [ -> [.data.table -> seq -> seq.default
Execution halted

@dgarrimar
Copy link
Collaborator

dgarrimar commented May 11, 2020

I think you should remove the commas for the region: 2:29619720-29740978

@archana433
Copy link
Author

archana433 commented May 11, 2020

nochr_gencode_full (copy).zip
i attached the gtf file also
$ ./sashimi-plot.py -b input_bam.tsv -g nochr_gencode_exon_transcript.gtf -c 2:29619720-29740978 -M 10 --base-size=20 --ann-height=4 --height=3 --width=18 -P palette.txt

Error in seq.default(start, max(start + 1, end - 4), by = 2425) :
'from' must be of length 1
Calls: rbind -> [ -> [.data.table -> seq -> seq.default
Execution halted

@dgarrimar
Copy link
Collaborator

dgarrimar commented May 11, 2020

Could you try only ./sashimi-plot.py -b input_bam.tsv -g nochr_gencode_exon_transcript.gtf -c 2:29619720-29740978?, also with and w/o the annotation file to get some hint on the source of the problem. Can you reproduce our examples? In any case, could you provide some sample data to try to reproduce the error? Thanks!

@archana433
Copy link
Author

archana433 commented May 12, 2020

$ ./sashimi-plot.py -b input_bam.tsv -g nochr_gencode_exon_transcript.gtf -c 2:29619720-29740978
Error in seq.default(start, max(start + 1, end - 4), by = 2425) :
'from' must be of length 1
Calls: rbind -> [ -> [.data.table -> seq -> seq.default
Execution halted

and when i am trying without gtf it is working.

@dgarrimar
Copy link
Collaborator

So the problem could be the annotation. I see you use nochr_gencode_exon_transcript.gtf. Could you try using the full annotation? Still, it would be really useful that you provide some example data in which we can reproduce the error. It can be just a (downsampled) bam file.

@dgarrimar
Copy link
Collaborator

dgarrimar commented Jun 3, 2020

Hi @archana433, did you manage to resolve the problem?

@archana433
Copy link
Author

yes, it is solved , Thank you

@archana433
Copy link
Author

archana433 commented Jun 21, 2020

I am getting this error again and also attaching the example data.
./sashimi-plot.py -b example1.bam -c 2:29619720-29740978 -g encode_mm10.transcript.exon.gtf
Error in seq.default(start, max(start + 1, end - 4), by = 2425) :
'from' must be of length 1
Calls: rbind -> [ -> [.data.table -> seq -> seq.default
Execution halted

gencode_mm10.transcript.exon.zip

example1.zip

@dgarrimar
Copy link
Collaborator

It seems that when there is only one intron of length shorter or equal to 5bp annotated in one of the strands (in your case the only intron annotated for transcript ENSMUST00000051212.3), an error arises in the arrow drawing due to an empty object. It should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants