Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rachelly
    Member
    • Oct 2010
    • 37

    #1

    Allele frequency calculation in SNP calling

    Hi all,

    I was wondering how the allele frequency is calculated by SAMTOOLS (I'm using mpileup and then bcftools).
    It seems that my SNPs always have a frequency of either 1 or 0.5, and do not always match the DP4 values.

    For example:
    Code:
    chr01   11961   .       G       C       52      .       DP=38;AF1=0.5;CI95=0.5,0.5;DP4=12,16,3,7;MQ=42;FQ=55;PV4=0.71,0.26,0.052,0.41   GT:PL:GQ        0/1:82,0,255:85
    Here it seems that the allele frequency should be more 0.3 than 0.5, doesn't it?

    Another example:
    Code:
    chr02   667170  .       C       T       14.2    .       DP=135;AF1=1;CI95=1,1;DP4=13,1,79,38;MQ=60;FQ=-71;PV4=0.064,6.2e-46,1,1 GT:PL:GQ        1/1:47,44,0:55
    In this case the frequency is closer to 0.9 than to 1...

    How is the frequency calculated?

    Thanks!
    Rachelly.
  • clarissaboschi
    Member
    • Apr 2010
    • 63

    #2
    I have the same doubt!!!!!!!!

    Comment

    • shawpa
      Member
      • Aug 2011
      • 73

      #3
      I am running into the same question with GATK unified genotyper output. Any help? I want the exact frequency using the counts. It seems to always just give a .5 or 1

      Comment

      • lh3
        Senior Member
        • Feb 2008
        • 686

        #4
        GATK and samtools assume samples are all diploid. You should look at DP4 or pileup instead.

        Also note that samtools does not work with pooled samples.

        Comment

        • shawpa
          Member
          • Aug 2011
          • 73

          #5
          Originally posted by lh3 View Post
          GATK and samtools assume samples are all diploid. You should look at DP4 or pileup instead.

          Also note that samtools does not work with pooled samples.

          Could you clarify what DP4 or pileup is? I wasn't able to find a software package called either of those things. Could you point me in the right direction?

          Comment

          • shawpa
            Member
            • Aug 2011
            • 73

            #6
            Originally posted by shawpa View Post
            Could you clarify what DP4 or pileup is? I wasn't able to find a software package called either of those things. Could you point me in the right direction?
            Ignore what I just wrote. I realized now I was being very stupid because you were referring to a format. I guess I am just trying to find an easy way to extract those counts so that I can calculate allele frequency from those. I can't do that with GATK.

            Comment

            Latest Articles

            Collapse

            • SEQadmin2
              The Factors Reshaping Genome Assembly
              by SEQadmin2



              When the Human Genome Project declared the human genome finished in 2003, portions of the sequence were still missing, including many of its most repetitive and structurally complex regions.1 Still, for the next two decades, researchers analyzed their sequencing data against the single linear reference that came out of this effort. Released in 2013 as GRCh38, that reference has powered countless discoveries, but it has gaps and cannot capture the genetic diversity of the world’s...
              11-24-2026, 07:04 AM
            • SEQadmin2
              16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
              by SEQadmin2





              NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
              10-30-2026, 06:46 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, 11-23-2026, 11:11 AM
            0 responses
            28 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 11-17-2026, 06:27 AM
            0 responses
            41 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 11-12-2026, 07:59 AM
            0 responses
            61 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 11-05-2026, 09:25 AM
            0 responses
            67 views
            0 reactions
            Last Post SEQadmin2  
            Working...