You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BamUtil Dedup requires 2 passes through the bam file, so as you discovered, does not work when reading from stdin. However there is definitely a bug in the implementation that it does not return an error when stdin is specified. I will update the code later this week to fail and print an error message when stdin is specified instead of just proceeding with incorrect output like it currently does.
I will also update the documentation to clearly state that stdin is not supported for dedup due to 2 passes being made through the file.
I have updated the code and documentation for Dedup to specify that stdin is not supported. The code now produces an error message to let the user know. Let me know if you have any additional questions.
I have a small MiSeq bam file (in.bam) that passes the
bamutil validate --in in.bam --so_coord
check:When I run with direct file input
bamutil dedup --in in.bam --out del.bam --verbose
it works as expectedWhen I try piping the SAM, it detects no duplicates
samtools view -h in.bam | bamutil dedup --in - --out del.bam --verbose
:It throws an error when I try to pipe uncompressed bam file
samtools view -hub in.bam | bamutil dedup --in -.ubam --out del.bam --verbose
:My bamutil version:
The text was updated successfully, but these errors were encountered: