Mpileup And Sam Flag 121 (Read Paired, Mate Unmapped ) [Updated]
1
1
Entering edit mode
12.0 years ago

One of our positive controls was not found using

samtools mpileup  -B ...

when looking at this variation using samtools tview, I can see a clear polymorphism A/G with a depth ~100.

all the reads overlapping the variation have a flag=121:

read paired
mate unmapped
read reverse strand
mate reverse strand
first in pair

does samools mpileup ignore those reads ?

EDIT:

here is the alignment under the variation:

>12
NNN
TRT
tgt
tgt
tat
tat
tgt
tat
tat
tgt
tat
tgt
tgt
tgt
tat
tat
tgt
tat
tat
tat
tat
tgt
tat
tat
tgt
tat
tat
tgt
tat
tat
tat
tgt
tgt
tgt
tat
tat
tat
tat
tgt
tgt
tat
tgt
tat
tat
tat
tat
tgt
tgt
tat
tgt
tat
tgt
tgt
tat
tat
tat
tgt
tgt
tgt
tat
tgt
tat
tat
tgt
tat
tgt
tat
tgt
tgt
tgt
tgt
tat
tat
tgt
tat
tat
tgt
tgt ....

and here are the flags and the qualities of my reads overlapping the mutation:

83    HHHHHHHHHHGHHHHHFIIHIIIIIHIIHHIIIIIIIIIHIIHFEHIIIHIHHHIIIIHIIIIIIIIIIIIIIHHHHHHGGGGGGEEEEEEEEBBBAA???
83    HHHHHHHHHHHHHHHHHHHHHGIIIIHIHIIIIIIIIIIHHIHFHHIIHHHHHHIIIIIHIIIIIIIIIIIIIIHHHHHGGGGGGDDDEEEEDBBBAAAAA
121    HHHFIIIIIHHHHHIHHHEEHEHIHHHIHIIIIIIIIIIIIIIHIHIIIIHIIIHIIHIIIIIHFGGGGGDDDDDDDDA?B?????
121    HHGDIIHIIHGIIIIIIIHEHHHHFHHIIIIIIHIIIIIIIIIIIIIIIIIIIIIIIIIIIIHHGGGGGGEDDDEDDDAABAA???
121    FGC=IIIHIIHIIIIIIIHEHEHHIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIHIHIIGGGGGGEEDDEEDDAAB?A???
121    HGEAHDHFGHHGFHHHHHHEH@>GEC-DHGDFEADHGHHGDHHHHHGFHHGGF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DDDDEEAAB?AAA?
(...)

mpileup in the region: As far as I can see thos read flags=121, haven't been used.

samtools mpileup  -s -f ref.fasta -r region my.bam 
[mpileup] 1 samples in 1 input files
<mpileup> Set max per-file depth to 8000
mychrom    pos-1    T    2    ,,    GG    ]]
mychrom    pos    G    2    ,,    GG    ]]
mychrom    pos+1    T    2    ,,    ED    ]]
samtools mpileup sam next-gen • 5.1k views
ADD COMMENT
0
Entering edit mode

Could it be low mapping quality?

ADD REPLY
0
Entering edit mode

I'm away from the lab but I think the quals are OK.

ADD REPLY
0
Entering edit mode

I experienced samtools not to call my variant in case that the reads at that position were not uniquely mapped (white reads in IGV).

ADD REPLY
3
Entering edit mode
12.0 years ago

As far as I can see, using the option -A in mpileup, fixes the problem:

   -A           count anomalous read pairs
ADD COMMENT
1
Entering edit mode

What are anomalous read pairs, please?

ADD REPLY
0
Entering edit mode

in the code using option 'A', sets a variable:

 use_orphan=1
ADD REPLY
0
Entering edit mode

I think anomalous read pairs are those where only one read is mapped, but not both. Without the -A option, your pileup only contains bases from reads that have a mapped mate. If you want to include reads that have an unmapped mate, use -A.

ADD REPLY

Login before adding your answer.

Traffic: 1961 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