Unconfigured Ad

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

    #1

    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
                Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                by SEQadmin2



                Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                ...
                10-14-2026, 09:55 AM
              • SEQadmin2
                New Genomics Technologies Take Aim at Long-Standing Limits
                by SEQadmin2


                Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                ...
                09-28-2026, 10:25 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, 10-15-2026, 10:52 AM
              0 responses
              27 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-14-2026, 05:39 AM
              0 responses
              34 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-13-2026, 09:56 AM
              0 responses
              31 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-09-2026, 11:14 AM
              0 responses
              28 views
              0 reactions
              Last Post SEQadmin2  
              Working...