View Single Post
Old 12-06-2018, 03:46 AM   #2
GenoMax
Senior Member
 
Location: East Coast USA

Join Date: Feb 2008
Posts: 7,060
Default

You can grab the header from your bam file by doing
Code:
 samtools view -H your.bam > header.txt
That can then be added back to your filtered sam.
GenoMax is offline   Reply With Quote