How to check whether the mate read is fully mapped or not?
1
0
Entering edit mode
9.4 years ago
chongchu.cs ▴ 10

Hello,

For paired-end reads, after aligned to reference. I can know whether a read is fully mapped or not by checking the "CIGAR" option. Is there any way to directly check whether the mate read is fully mapped or not?

In sam/bam specification, there is a option "MC Z CIGAR string for mate/next segment". Doesn't any alignment tool can report this "MC" field? It seems BWA doesn't report this field.

Thank you

Chong

alignment next-gen sequence • 2.2k views
ADD COMMENT
3
Entering edit mode
9.4 years ago
JC 13k

That information can be inferred from the bit-flag value, in particular 0x2 and 0x8 flags. Check the documentation.

ADD COMMENT
0
Entering edit mode

Hi JC,

Thank you for your reply. From the bit-flag value, we can only know whether the mate read is mapped or not, but we don't know whether is fully mapped or not. If a read is soft-clipped, it is also reported as mapped, right? I want to check whether the mate read is fully mapped or not.

Chong

ADD REPLY
1
Entering edit mode

I see, then there are not other way to check it except in the CIGAR. You can sort your BAM file by read_id with `samtools -n` and check the pairs.

ADD REPLY

Login before adding your answer.

Traffic: 1955 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6