Entering edit mode
9.3 years ago
Pfs
▴
580
If a read name is found multiple times in a SAM file, the tag (NH:i
) is set to indicate how many times that read name occurs.
- Is the integer following NH counting all the occurrences or just the first mates?
- Should then the bit corresponding to secondary alignment in the SAM flag be set?
For example:
Qname flag pos rname pnext ... tags
read1 83 1 chr3 100 .... NH:i:2
read1 83 10 chr3 110 .... NH:i:2
read1 147 100 chr3 1 .... NH:i:2
read1 147 110 chr3 10 .... NH:i:2
Why none of the SAM flags indicate that read1 has a secondary alignment?
Thanks!
Can you paste the real lines from the SAM file and also give us some information about the aligner used and settings etc.
Here is the actual group of reads I was referring to . I would expect the FLAG reporting some of those alignments as "secondary". It is hard to read, but there are 12 occurrences of the same read name, each has a mate, none of the flag has bit x100 set. How do I decide which one is the primary alignment? Do I need to check the (optional) tag CP? Is there something wrong with this SAM file? I took this from the pasilla dataset, I did not generate this alignment. Thanks!
That file appears to be broken, don't try too hard to make any sense of it.
Ok. Thank you!