Question: Mpileup And Sam Flag 121 (Read Paired, Mate Unmapped ) [Updated]
1
gravatar for Pierre Lindenbaum
7.0 years ago by
France/Nantes/Institut du Thorax - INSERM UMR1087
Pierre Lindenbaum124k wrote:

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???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IIHHHHIIIIIIIHIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIGGGGGGEDDDDDEEAAB?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    ]]
next-gen samtools sam mpileup • 3.1k views
ADD COMMENTlink modified 7.0 years ago • written 7.0 years ago by Pierre Lindenbaum124k

Could it be low mapping quality?

ADD REPLYlink written 7.0 years ago by Damian Kao15k

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

ADD REPLYlink written 7.0 years ago by Pierre Lindenbaum124k

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 REPLYlink written 7.0 years ago by Biomonika (Noolean)3.1k
3
gravatar for Pierre Lindenbaum
7.0 years ago by
France/Nantes/Institut du Thorax - INSERM UMR1087
Pierre Lindenbaum124k wrote:

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

   -A           count anomalous read pairs
ADD COMMENTlink written 7.0 years ago by Pierre Lindenbaum124k
1

What are anomalous read pairs, please?

ADD REPLYlink written 7.0 years ago by Biomonika (Noolean)3.1k

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

 use_orphan=1
ADD REPLYlink written 7.0 years ago by Pierre Lindenbaum124k

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 REPLYlink written 6.7 years ago by Christof Winter990
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1721 users visited in the last hour