Question: The "Read Bases" Column In Samtools Mpileup
1
gravatar for dustar1986
5.9 years ago by
dustar1986260
USA
dustar1986260 wrote:

Hi,

I read the description of "mpileup" from samtools manual. It says "In the pileup format (without -uor-g), each line represents a genomic position, consisting of chromosome name, coordinate, reference base, read bases... Information on match, mismatch, indel, strand, mapping quality and start and end of a read are all encoded at the read base column....Information on match, mismatch, indel, strand, mapping quality and start and end of a read are all encoded at the read base column. At this column, a dot stands for a match to the reference base on the forward strand, a comma for a match on the reverse strand"

Then the 4th column should be "read bases" column, if I understand it correctly. When I check this using:

samtools mpileup input.bam|cut -d '    ' -f 4

I saw there were only integers in this column, instead of dots or commas which stands for strand information respectively. Are they represented in a flag way?

So how can I dig out strand information (forward strand or reverse one) from them?

Thank you very much.

mpileup strand • 2.3k views
ADD COMMENTlink written 5.9 years ago by dustar1986260
5
gravatar for Pierre Lindenbaum
5.9 years ago by
France/Nantes/Institut du Thorax - INSERM UMR1087
Pierre Lindenbaum96k wrote:

From http://samtools.sourceforge.net/pileup.shtml;

  • The fourth column is the number of reads covering the site.
  • The 5th column: a dot stands for a match to the reference base on the forward strand, a comma for a match on the reverse strand, ACGTN' for a mismatch on the forward strand andacgtn' for a mismatch on the reverse strand (...)
ADD COMMENTlink written 5.9 years ago by Pierre Lindenbaum96k

er...I see. THX

ADD REPLYlink written 5.9 years ago by dustar1986260
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: 1091 users visited in the last hour