Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • gormleymp
    Member
    • Feb 2012
    • 19

    samtools pileup manual description

    Hello all,

    I am trying to use a shell script that calls samtools pileup function. Because the pileup function is deprecated, the shell script produces nonsense output. I would like to translate the line that calls pileup into a line calling mpileup that produces the same output. Unfortunately, I can not find any detailed information on the pileup command line arguments. The offending line is listed below:

    samtools pileup -c -f $FA -r 0.0000007 -l $BED $BAM > $PILEUP

    in which $FA is the reference fasta file, $BED is a file formatted for the l option of pileup, $BAM is the bam file and $pileup is the pileup file to write to.

    Does anyone know what the -c and -r arguments refer to under the deprecated pileup function and if this call can be converted into a call to mpileup and produce the same output?

    Thanks,
    Michael Gormley
  • Kennels
    Senior Member
    • Feb 2011
    • 149

    #2
    Hi

    I was troubleshooting this on another issue. Installing version 0.1.16 samtools gave me:

    Usage: samtools pileup [options] <in.bam>|<in.sam>

    Option: -s simple (yet incomplete) pileup format
    -S the input is in SAM
    -B disable BAQ computation
    -A use the original MAQ model for SNP calling (DEPRECATED)
    -2 output the 2nd best call and quality
    -i only show lines/consensus with indels
    -Q INT min base quality (possibly capped by BAQ) [13]
    -C INT coefficient for adjusting mapQ of poor mappings [0]
    -m INT filtering reads with bits in INT [0x704]
    -M INT cap mapping quality at INT [60]
    -d INT limit maximum depth for indels [1024]
    -t FILE list of reference sequences (force -S)
    -l FILE list of sites at which pileup is output
    -f FILE reference sequence in the FASTA format

    -c compute the consensus sequence
    -v print variants only (for -c)
    -g output in the GLFv3 format (DEPRECATED)
    -T FLOAT theta in maq consensus calling model (for -c) [0.83]
    -N INT number of haplotypes in the sample (for -c) [2]
    -r FLOAT prior of a difference between two haplotypes (for -c) [0.001]
    -G FLOAT prior of an indel between two haplotypes (for -c) [0.00015]
    -I INT phred prob. of an indel in sequencing/prep. (for -c) [40]


    hope that helps.

    Comment

    • hoondy
      Junior Member
      • Apr 2013
      • 1

      #3
      I am on the same boat. I am trying to revise the shell script that uses depreciated pileup function you mentioned. Did you by any chance figure out how to replace it with mpileup command? Any help would be appreciated. Thanks.

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
        by SEQadmin2



        Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
        ...
        Yesterday, 11:10 AM
      • SEQadmin2
        Cancer Drug Resistance: The Lingering Barrier to Rising Survival
        by SEQadmin2



        Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

        There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
        07-08-2026, 05:17 AM
      • GATTACAT
        Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
        by GATTACAT
        Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
        07-01-2026, 11:43 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, Yesterday, 10:04 AM
      0 responses
      10 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-08-2026, 10:08 AM
      0 responses
      7 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-07-2026, 11:05 AM
      0 responses
      14 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-02-2026, 11:08 AM
      0 responses
      31 views
      0 reactions
      Last Post SEQadmin2  
      Working...