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

              • 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
              • SEQadmin2
                Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                by SEQadmin2


                I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

                Here are nine questions we think about, in roughly the order they matter, before...
                06-18-2026, 07:11 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, Yesterday, 11:08 AM
              0 responses
              6 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 06-30-2026, 05:37 AM
              0 responses
              11 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 06-26-2026, 11:10 AM
              0 responses
              19 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 06-17-2026, 06:09 AM
              0 responses
              53 views
              0 reactions
              Last Post SEQadmin2  
              Working...