This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Bwa/Samtools Soft-Clipping To Retrieve Back Whole Read

Hi,

(I've been googling for this and couldn't find the answer)

Am I right in thinking that the default bwa/samtools instructions in the website will hard-clip the reads in the SAM/BAM files?

In the usual pipeline for single fragment reads: bwa aln ... bwa samse ... samtools view ... samtools sort ... samtools index ...

How can I end up with a final SAM/BAM file that contains the whole of the read/qualscore even if it's not fully matched?

Cheers

bwa samtools

No, it is soft clip.

1 answer

I've been using bwa, and I see soft-clipped reads in the results. I doubt that samtools will change this. As far as I can tell, the BAM files also contain the whole reads.

Log in to answer this question.