What Felix said regarding finding the read.
I don't know if there's anything prebuilt that will extract soft-clipped sequences. It'd be an easy* enough thing to write though.
Anything aligning to the end should get hard clipped off, though I recall there being an issue with at least earlier versions of bwa concatenating contigs and then allowing alignments to flow of the end of one onto the next. Having said that, even that shouldn't cause an alignment to start with a deletion.
*Only for someone experienced with programming.
I don't know if there's anything prebuilt that will extract soft-clipped sequences. It'd be an easy* enough thing to write though.
Anything aligning to the end should get hard clipped off, though I recall there being an issue with at least earlier versions of bwa concatenating contigs and then allowing alignments to flow of the end of one onto the next. Having said that, even that shouldn't cause an alignment to start with a deletion.
*Only for someone experienced with programming.
Comment