-
Notifications
You must be signed in to change notification settings - Fork 11
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
Should --ubam really include secondary alignments? #29
Comments
I think the problem is that if you are running |
I have added a suggestion in #30. One thing is to think about if you have an aligned BAM with some unaligned reads. For example, add 100 unaligned reads to Another thing is if you would rather want to represent all alignments in an aligned BAM as unaligned (like running samtools reset), but I think that is a different flag than
|
Yeh I think you are right, there are indeed two scenarios to keep in mind.
I agree a different flag makes most sense then... |
When running with
--ubam
on a file with aligned reads, secondary alignments will get a length of 0 and be included in the median read length calculations, arrow output etc.test-data/small-test-phased.bam
out.arrow
If not also running with
--min-read-len 1
.However, running with
--ubam
will no longer removed soft-clipped bases from the primary alignments.Compare the output to running without
--ubam
.If secondary alignments are filtered out by default, should they also not be filtered out by default when running with
--ubam
?And should soft-clipped bases then not be removed from primary alignments when running with
--ubam
?The text was updated successfully, but these errors were encountered: