Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wdemos
    Member
    • Jun 2012
    • 31

    #1

    Comprehensive Samtools user guide?

    I'm a first time samtools user. I am using the mpileup command for somatic mutation calling between a pair of samples. I generate an output file: var.bcf, but I don't know how to open/extract the data from the file. Is there a comprehensive user guide somewhere with examples/tutorials how to use this tool? I've been to http://samtools.sourceforge.net/samtools.shtml but it is no where near detailed enough for my level of experience with this tool. Thank you in advance for any insight.
  • swbarnes2
    Senior Member
    • May 2008
    • 910

    #2
    The quick answer...

    bcftools view var.bcf > var.vcf
    That's a plain text file

    Comment

    • wdemos
      Member
      • Jun 2012
      • 31

      #3
      Thank you. I did figure out how to view the file, the interpretation is the issue. It looks like a lot oh headers but no data:
      ##fileformat=VCFv4.1
      ##INFO=<ID=DP,Number=1,Type=Integer,Description="Raw read depth">
      ##INFO=<ID=DP4,Number=4,Type=Integer,Description="# high-quality ref-forward bases, ref-reverse, alt-forward and alt-reverse bases">
      ##INFO=<ID=MQ,Number=1,Type=Integer,Description="Root-mean-square mapping quality of covering reads">
      ##INFO=<ID=FQ,Number=1,Type=Float,Description="Phred probability of all samples being the same">
      ##INFO=<ID=AF1,Number=1,Type=Float,Description="Max-likelihood estimate of the first ALT allele frequency (assuming HWE)">
      ##INFO=<ID=AC1,Number=1,Type=Float,Description="Max-likelihood estimate of the first ALT allele count (no HWE assumption)">
      ##INFO=<ID=G3,Number=3,Type=Float,Description="ML estimate of genotype frequencies">
      ##INFO=<ID=HWE,Number=1,Type=Float,Description="Chi^2 based HWE test P-value based on G3">
      ##INFO=<ID=CLR,Number=1,Type=Integer,Description="Log ratio of genotype likelihoods with and without the constraint">
      ##INFO=<ID=UGT,Number=1,Type=String,Description="The most probable unconstrained genotype configuration in the trio">
      ##INFO=<ID=CGT,Number=1,Type=String,Description="The most probable constrained genotype configuration in the trio">
      ##INFO=<ID=PV4,Number=4,Type=Float,Description="P-values for strand bias, baseQ bias, mapQ bias and tail distance bias">
      ##INFO=<ID=INDEL,Number=0,Type=Flag,Description="Indicates that the variant is an INDEL.">
      ##INFO=<ID=PC2,Number=2,Type=Integer,Description="Phred probability of the nonRef allele frequency in group1 samples being larger (,smaller) than in group2.">
      ##INFO=<ID=PCHI2,Number=1,Type=Float,Description="Posterior weighted chi^2 P-value for testing the association between group1 and group2 samples.">
      ##INFO=<ID=QCHI2,Number=1,Type=Integer,Description="Phred scaled PCHI2.">
      ##INFO=<ID=PR,Number=1,Type=Integer,Description="# permutations yielding a smaller PCHI2.">
      ##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype">
      ##FORMAT=<ID=GQ,Number=1,Type=Integer,Description="Genotype Quality">
      ##FORMAT=<ID=GL,Number=3,Type=Float,Description="Likelihoods for RR,RA,AA genotypes (R=ref,A=alt)">
      ##FORMAT=<ID=DP,Number=1,Type=Integer,Description="# high-quality bases">
      ##FORMAT=<ID=SP,Number=1,Type=Integer,Description="Phred-scaled strand bias P-value">
      ##FORMAT=<ID=PL,Number=-1,Type=Integer,Description="List of Phred-scaled genotype likelihoods, number of values is (#ALT+1)*(#ALT+2)/2">
      #CHROM POS ID REF ALT QUAL FILTER INFO FORMAT

      Not sure what I did wrong. The mplieup command I used was:
      samtools mpileup -DSuf ref.fa aln.bam | bcftools view -bvcgT pair - > var.bcf (inclded my filepaths/names of course)

      Comment

      • swbarnes2
        Senior Member
        • May 2008
        • 910

        #4
        At first glance, you have no SNPs.

        Second, for some reason all the reads that show varaints have been filtered away.

        Try using -A or -B in your mpileup command.

        Try removing the '-T pair' from bcftools

        Comment

        • wdemos
          Member
          • Jun 2012
          • 31

          #5
          thank you I will gie your suggestions a go.

          Comment

          • wdemos
            Member
            • Jun 2012
            • 31

            #6
            I didn't have the files aligned correctly to the alignment file causing the error. Thank you for the help.

            Comment

            Latest Articles

            Collapse

            • SEQadmin2
              Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
              by SEQadmin2



              CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

              Despite this, “CRISPR helped turn genome editing from a specialized technique into
              ...
              07-31-2026, 11:01 AM
            • SEQadmin2
              Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
              by SEQadmin2


              Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

              The systematic characterization of the human proteome has
              ...
              07-20-2026, 11:48 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, Today, 10:35 AM
            0 responses
            3 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 08-06-2026, 07:41 AM
            0 responses
            23 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 08-03-2026, 10:13 AM
            0 responses
            40 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-31-2026, 02:55 AM
            0 responses
            46 views
            0 reactions
            Last Post SEQadmin2  
            Working...