I have .sam
files from RNAseq alignment. the alignment was done using Tophat
.
now, I am trying to split the forward and reverse strands and make two sam
files for forward and reverse strands separately. in my sam
file I found 4 numbers (codes) to identify strands. the numbers are 0, 16, 272, 256
.
I used the following link to see which strand they are representing:
https://broadinstitute.github.io/picard/explain-flags.html
I realized that 272
represents reverse strand
but for the other 3 codes I got bit confused. can you help me to understand every number represents which strand
?
the sam flag is a bit array : https://en.wikipedia.org/wiki/Bit_array packed in an integer (4 bytes)