Entering edit mode
7.9 years ago
rubic
▴
270
Is there way to combine these samtools commands:
samtools view -h -F 0x10 <bam>
samtools calmd <bam_from_step_1> <ref.fasta>
I tried this:
samtools view -h -F 0x10 <bam> | samtools calmd <ref.fasta> | samtools view -bS - > <out.bam>
But it doesn't work.
For one thing, samtools view outputs data in .sam format, not .bam format. So if calmd requires a .bam format, add -b to samtools view top give it a bam.