Doing some NGS quality control. I'm mapping reads back to a host genome I know is in there, and I'm looking for reads with anomalous behavior, such as forward-forward or reverse-reverse reads.
I /think/ in SAM flags, this case:
5'___________________3'
3'_<--__________<--___5'
Would be
Read reverse strand/SEQ being reverse complemented (bit 16)
Mate reverse strand/SEQ of the next segment in the template being reversed (bit 32)
Which corresponds to -f 48.
For the
5'___-->_____________-->__3'
3'_______________________5'
case, am I correct in assuming it is -F 48?
And for classic reads, it is either read reverse strand (-f 16) or the mate which is reversed (-f 32).
The upper read in this case is forward strand, and its mate is on the reverse. In the case of the bottom read, its flag would be read-reverse-strand, but not its mate.
5'___-->__________________3'
3'___________________<--__5'
5'___<--__________________3'
3'___________________-->__5'
Do I have it right, or am I confused? I've been digging through the blogs for answers, but haven't found any yet. That said, I'm going to manually extract those reads by flag from samtools and remap to reference and see how they look.
I /think/ in SAM flags, this case:
5'___________________3'
3'_<--__________<--___5'
Would be
Read reverse strand/SEQ being reverse complemented (bit 16)
Mate reverse strand/SEQ of the next segment in the template being reversed (bit 32)
Which corresponds to -f 48.
For the
5'___-->_____________-->__3'
3'_______________________5'
case, am I correct in assuming it is -F 48?
And for classic reads, it is either read reverse strand (-f 16) or the mate which is reversed (-f 32).
The upper read in this case is forward strand, and its mate is on the reverse. In the case of the bottom read, its flag would be read-reverse-strand, but not its mate.
5'___-->__________________3'
3'___________________<--__5'
5'___<--__________________3'
3'___________________-->__5'
Do I have it right, or am I confused? I've been digging through the blogs for answers, but haven't found any yet. That said, I'm going to manually extract those reads by flag from samtools and remap to reference and see how they look.
Comment