-
Notifications
You must be signed in to change notification settings - Fork 287
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 intersect drops bam header line in latest version #803
Comments
Hi, could you please share the file to repo this? |
We're experiencing exactly the same issue! In our case, it's
This command drops any and all |
Hi @38, The following will reproduce the problem:
Note the sorted file with have the sorted indicator in the first line of the header with Intersect that sorted file with a bed file, the header will lose the sorted indicator.
|
Hi @arq5x , Just add a fix to this issue |
Thanks so much for catching this. Now fixed in master thanks to @38 |
I am trying to use bedtools intersect and it drops the sorted status in the bam file header in bedtools 2.29.1, but not in 2.29.0
bedtools intersect -v -abam test1.bam -b test.bed -wa > test2.bam
2.29.0
@HD VN:1.0 SO:coordinate @SQ SN:chr1 LN:248956422 @SQ SN:chr2 LN:242193529 @SQ SN:chr3 LN:198295559
2.29.1
@SQ SN:chr1 LN:248956422 @SQ SN:chr2 LN:242193529 @SQ SN:chr3 LN:198295559 @SQ SN:chr4 LN:190214555
The text was updated successfully, but these errors were encountered: