I have seen two methods to transform .sam to .bam, wonder which one is better, "ref to genome sequence" OR "directly set -q and -F".
samtools view -bT hg19.fa A.sam > A.bam
samtools view -bhs -q30 -F1548 A.sam > A.bam
which one is better?
Thanks a lot but still wonder when head available, why not samtools view -bhs -q30 -F1548 A.sam > A.bam
From samtools help
From this link
-q 30
- include reads with mapping quality equal to or greater than 30-F 154
- only include reads with none of the FLAGS in the imageI hope this helps !!