Secondary Alignment in BAM flag
1
1
Entering edit mode
6.7 years ago
eudoraleer ▴ 10

Hi all, was wondering what does it mean by secondary alignment in BAM flag?

What is been defined as unmapped reads?

Option used:

samtools view -F 260 bam_file


Thanks!

bam sequence alignment • 12k views
7
Entering edit mode
6.7 years ago

Unmapped reads are in the BAM file but have no valid assigned position (N.B., they may have an assigned position, but it should be ignored). It's typically the case that a number of reads can't be aligned, due to things like sequencing errors, imperfect matches between the DNA sequenced and the reference, random e. coli or other contamination, etc..

A secondary alignment occurs when a given read could align reasonably well to more than one place. One of the possible reported alignments is termed "primary" and the others will be marked as "secondary".

0
Entering edit mode

Thank you Ryan, I have a small question, are secondary aligned reads considered duplicates?

1
Entering edit mode

I assume you mean PCR duplicates, to which the answer is no.

0
Entering edit mode

Thanks, I think I am getting too confused with the terms duplicates, coverage and secondary reads, especially between duplicates and coverage, explanations in many posts does not seem to get me fully understood the meaning of pcr duplicates.

0
Entering edit mode

I think they are... look at this post, maybe will clarify your doubt: How do I count the real total reads from a fastq file?

1
Entering edit mode

They are not. Pierre clearly mentions in your post (as did Devon here) that secondary alignments are reads that map at multiple positions, I don't understand why you had to hunt down a 6 year old post and add a wrong comment.