Entering edit mode
3.4 years ago
khanhlpbao
•
0
I have a single-ended sam files generated from bwa with default settings for NIPT calculation. How can I extract a sam or bam files that contains only alignments that have 0 mismatch by using samtools?
Thanks, can I replace bwa.bam with bwa.sam? Or I need to convert it to bam first?
this is wrong, the last command is trying to read a file bwa.filtered.bam. You want
.. | samtools view -O BAM -o bwa.filtered.bam
Hi, by somehow it shows error: no header when type together but worked when I type them separately