This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Any option in bwa mem aligner for headless sam output?

Hi,

In the bowtie2 implementation for read alignment to a reference, there is an option (--no-sq Suppress @SQ SAM header lines.) to obtain a headless sam file as output. I want to carry out alignments using bwa mem and obtain headless sam file as ouput. I have checked the bwa mem manual for an quivalent flag and couldn't find any. Any ideas?

Thanks

sam bowtie2 bwa alignment

1 answer

bwa mem ref.fa R1.fq.gz R2.fq.gz | grep -v '^@SQ'

Thanks so much @Pierre Lindenbaum

Log in to answer this question.