Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • nkwuji
    Member
    • Mar 2010
    • 19

    Question on calling SNPs using samtools/bcftools

    Hi,

    I am using samtools/bcftools to call SNPs. I have a question on bcftools, I don't understand why this SNP is not called by bcftools. For example, this is the result of test.bcf file, which is created by:

    Code:
    samtools mpileup -ugf ref.fa seq.bam >test.bcf
    chr21 8588396 . T A,X 0 . DP=13;I16=1,9,0,3,378,14392,73,1809,600,36000,180,10800,93,1075,42,642 PL 27,0,57,190,199,232
    From PL value, P(D|TT)=10^(-2.7), P(D|TA)=0. So TA allele should be the most possible allele.

    But in the processed vcf using this command:

    Code:
    bcftools view -c test.bcf > test_count.vcf
    This SNP is:
    chr21 8588396 . T . 4.76 . DP=13;AF1=0.4995;CI95=0.5,0.5;DP4=1,9,0,3;MQ=60;PV4=1,5.9e-05,1,1 PL 27
    There is no alternative base information, but the AF1 is about 0.5, which means this is an heterozygous allele. And, if I use the following command, there is no SNP called at all.

    Code:
    bcftools view -vcg test.bcf > test_count.vcf
    Why the alternative base is not A??? Is there any option I can choose to call this SNP?

    BTW, I am using samtools version 0.1.10-6.

    Cheers,

    Jun
  • nkwuji
    Member
    • Mar 2010
    • 19

    #2
    Originally posted by nkwuji View Post
    Hi,

    I am using samtools/bcftools to call SNPs. I have a question on bcftools, I don't understand why this SNP is not called by bcftools. For example, this is the result of test.bcf file, which is created by:

    Code:
    samtools mpileup -ugf ref.fa seq.bam >test.bcf


    From PL value, P(D|TT)=10^(-2.7), P(D|TA)=0. So TA allele should be the most possible allele.

    But in the processed vcf using this command:

    Code:
    bcftools view -c test.bcf > test_count.vcf
    This SNP is:


    There is no alternative base information, but the AF1 is about 0.5, which means this is an heterozygous allele. And, if I use the following command, there is no SNP called at all.

    Code:
    bcftools view -vcg test.bcf > test_count.vcf
    Why the alternative base is not A??? Is there any option I can choose to call this SNP?

    BTW, I am using samtools version 0.1.10-6.

    Cheers,

    Jun
    Still unsolved... waiting for an answer...

    Comment

    • lh3
      Senior Member
      • Feb 2008
      • 686

      #3
      you need to apply the prior

      Comment

      • nkwuji
        Member
        • Mar 2010
        • 19

        #4
        Originally posted by lh3 View Post
        you need to apply the prior
        Hi, Lh3,

        Thx for your reply. Could you elaborate it? I find an option in bcttools view

        -P STR, type of prior: full, cond2, flat

        Do you mean this option? What are the differences between them?

        Cheers,
        Jun

        Comment

        • LisaM
          Junior Member
          • Jan 2011
          • 2

          #5
          Originally posted by nkwuji View Post
          Hi, Lh3,

          Thx for your reply. Could you elaborate it? I find an option in bcttools view

          -P STR, type of prior: full, cond2, flat

          Do you mean this option? What are the differences between them?

          Cheers,
          Jun
          Hi, could someone please comment on this please? I'm also looking into the differences between the "prior" commands, and I haven't been able to find anything on the internet. Any information would be helpful.

          Thanks!
          Lisa

          Comment

          • whodo_voodoo
            Junior Member
            • Sep 2009
            • 1

            #6
            Hi,

            Another request here for some more information with regards the 'prior' and snp calling options of bcftools. I've been trying to learn how to change the parameters of the snp calling but can't find much information on how to change the parameters in bcftools.

            I've also got a second related question about bcftools, the mpileup page says
            BCFtools does not properly handle multi-allelic variants. It only takes the strongest non-reference allele.
            Does anybody know how much of an issue this is? I'm expecting a number of my SNPs to be heterozygous with no allele match to the reference, will this issue prevent me seeing them?

            Thanks in advance for any answers,

            Craig

            Comment

            • dan
              wiki wiki
              • Jul 2008
              • 194

              #7
              Originally posted by lh3 View Post
              you need to apply the prior
              -- (minus minus)
              Homepage: Dan Bolser
              MetaBase the database of biological databases.

              Comment

              Latest Articles

              Collapse

              • SEQadmin2
                From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
                by SEQadmin2


                Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


                The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
                ...
                06-02-2026, 10:05 AM
              • SEQadmin2
                Single-Cell Sequencing at an Inflection Point: Early Impacts of New Platforms and Emerging Trends
                by SEQadmin2


                With the launch of new single-cell sequencing platforms in 2026, the field stands at an exciting inflection point. This article surveys the most impactful advances in the field and discusses how they’re reshaping research in cancer, immunology, and beyond.


                Introduction

                Single-cell sequencing technologies have undergone remarkable advances over the past decade, transitioning from low-throughput experimental approaches to highly scalable platforms capable of...
                05-22-2026, 06:42 AM
              • SEQadmin2
                Environmental Genomics in the Age of NGS: From Microbes to Conservation Strategies
                by SEQadmin2

                Studying ecosystems means dealing with complex, multi-species communities that are hard to observe at scale. This complexity, however, hides many important questions to be answered, from how biogeochemical cycles work and how climate change can affect species distribution to how conservation strategies can work best.


                Genomics, particularly since the expansion of NGS, has transformed ecosystem ecology. By sequencing environmental DNA, we can now assess biodiversity without direct...
                05-06-2026, 09:04 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, Yesterday, 08:59 AM
              0 responses
              14 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 06-02-2026, 12:03 PM
              0 responses
              22 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 06-02-2026, 11:40 AM
              0 responses
              19 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 05-28-2026, 11:40 AM
              0 responses
              32 views
              0 reactions
              Last Post SEQadmin2  
              Working...