The alignment does not end at 628207, it starts at 628004 and ends at 628107, neither of which are in the specified range.
Any other thoughts as to why it might be appearing?
Thank you for your answers.
I still don't quite understand the TLEN value though. So if I have two reads that are part of the same pair the TLEN is the distance from the leftmost base of the first read to the rightmost base of the second read?
And if I have two reads that are a pair, how do I know which two are pairs? Will some sort of flag signify this?
Please show us a few reads printed from
samtools view file.bam chr20:628200-628400. I want to see the chromosomes and the flags.The length is the distance between the two reads . Negative is reverse is mapped before the Forward.
This is the command that I give it below and following that is the output:
Also, could you elaborate on what you mean by the length is the distance between two reads? Because one read begins at 628004 and the next begins at 628033. The distance between those two reads is not 202 or 177 which is what the length value is for both of those reads...