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

bedtools getfasta -split with single exon #865

Closed
amirkarger opened this issue Sep 25, 2020 · 5 comments
Closed

bedtools getfasta -split with single exon #865

amirkarger opened this issue Sep 25, 2020 · 5 comments

Comments

@amirkarger
Copy link

I just downloaded the latest bedtools. When I run bedtools getfasta -split with two exons, it works. When I run with one exon, it doesn't.

cat a.bed12
chr1    0       20      ENST00000466557.1       0       +       0       20      0       1       2       3

cat a.fa
>chr1
aaaaannnnnnnnnnttttt

./bedtools.static.binary getfasta -fi a.fa -bed a.bed12 -split
>chr1:0-20
aaaaannnnnnnnnnttttt

But:

cat a.bed12
chr1    0       20      ENST00000466557.1       0       +       0       20      0       2       2,3     3,17

./bedtools.static.binary getfasta -fi a.fa -bed a.bed12 -split
>chr1:0-20
aattt

Are you not allowed to run getfasta with single exons? What am I not seeing in this super-simple example?

@arq5x
Copy link
Owner

arq5x commented Sep 25, 2020

Thanks for reporting this - a long undetected bug. I will fix and send a patch in the morning

@amirkarger
Copy link
Author

Thanks for the quick response. Good to know I'm not halluciniating.

@arq5x arq5x closed this as completed in ab92e87 Sep 27, 2020
@arq5x
Copy link
Owner

arq5x commented Sep 27, 2020

Now fixed in master

@amirkarger
Copy link
Author

Works on a tiny file. Will check with a bigger file shortly. Thanks for the quick fix!

@amirkarger
Copy link
Author

... and worked a big file with real proteins too. Thanks.

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