Entering edit mode
5.4 years ago
flystar233
•
0
First ,
samtools view -Sb sample.sam >sample.bam
Second,
samtools view sample.bam >sample2.sam
I used this method: sam2bam2sam found that the head of the original sam file was lost at the end. So was it lost in sam2bam or bam2sam?
ps:sample.sam have header information,sample2.sam don't have header information.