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

bedToBam removes last character from read names #788

Open
insectopalo opened this issue Nov 7, 2019 · 5 comments
Open

bedToBam removes last character from read names #788

insectopalo opened this issue Nov 7, 2019 · 5 comments

Comments

@insectopalo
Copy link

bedToBam removes the last character from the read name. This happens in bedtools 2.29 and 2.28 but not in 2.27.1.

@arq5x
Copy link
Owner

arq5x commented Nov 7, 2019

Can you provide a minimal example?

@jmarshall
Copy link
Contributor

Likely related to #762 (comment)

@insectopalo
Copy link
Author

insectopalo commented Nov 7, 2019

echo -e "1\t3000" > chrsize.tmp
echo -e "1\t1000\t2000\tread_name\t255\t+" | bedtools-2.29.0 bedtobam -i - -g chrsize.tmp | samtools view

read_nam 0 1 1001 255 1000M * 0 0 * *

echo -e "1\t1000\t2000\tread_name\t255\t+" | bedtools-2.27.1 bedtobam -i - -g chrsize.tmp | samtools view

read_name 0 1 1001 255 1000M * 0 0 * *

@arq5x
Copy link
Owner

arq5x commented Nov 7, 2019

Thanks for reporting, likely a simple fix.

@insectopalo
Copy link
Author

My pleasure.

38 added a commit to 38/bedtools2 that referenced this issue Nov 7, 2019
38 added a commit to 38/bedtools2 that referenced this issue Nov 27, 2019
arq5x added a commit that referenced this issue Nov 30, 2019
Fix issue #788 and add test cases
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

3 participants