Using bowtie2, an alignment file (SAM) file was inferred. The question at hand is to report the count and sequences of multiple mapped reads.
As per the flags and tags specifications of the SAM format, I am trying to sift the alignment file on the basis of the following:
1. The value of N in each record carrying tags XS:i: and AS:i: must be identical.
2. The reads are preconditioned to be concordantly aligned, i.e. "YT:Z:CP" tag is set.
3. The flags 0x100 (256 bits) and 0x800 (2048 bits) represent secondary and supplementary mappings respectively.
Despite the aforementioned stipulations, the output is discrepant as compared to the alignment summary provided by bowtie2. Is there any alternative to the logic as stated.
Thanks in advance.
SJ.