Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cigsit
    Junior Member
    • Nov 2011
    • 1

    #1

    VCF output from FreeBayes

    Hi,

    I have just started using FreeBayes as a comparison to samtools as they both take BAMs and produce a VCF output which is ideal for scripting. FreeBayes actually seems like the ideal free-standing, simple and fast SNP caller I have been longing for, however the values in the VCF INFO column do not seem to match what is in the alignment.
    In particular the DP value almost never seems to match what I can see in alignment viewers. It is always less than the number of reads I see stacked at the SNP position while VCFv4.1 claims that DP should represent the _total_ read depth.
    Additionally, the AC (Total number of alternate alleles in called genotypes) and AN (Total number of alleles in called genotypes) values seem to almost never vary no matter what the read depth and number of alt alleles at a SNP position. To be more precise AC is always either 1 or 2 and AN seems fixed at 2 no matter what.

    Is this a known quirk of FreeBayes? These are very important values that I need to parse from the VCF output but they just make no sense after having used samtools for a few years.

    Thanks.
  • garwuf
    Junior Member
    • Mar 2009
    • 7

    #2
    I have run Freebayes on some of my old bam alignments, which were already evaluated with samtools, gigabayes and gatk. None of the polymorphisms discovered by Freebayes matched the real ones. Actually, it missed very well defined snps, and pointed instead at some positions, which do not look anything special. DP doesn't correspond to real coverage either (no matter if to consider quality or not). Maybe just a problem with old bam formats?
    Last edited by garwuf; 11-21-2011, 03:37 PM.

    Comment

    • VeBeKay
      Junior Member
      • Jul 2010
      • 5

      #3
      I have similar issues with the freebayes output.
      I guess that "AC" & "AN" refer to the number of *alleles* rather than sequencing depth (which is why they are always 1 or 2). (??)
      However, I cannot find any documentation of what these or the other fields in the vcf output mean; not all of them are specified here:
      1000genomes.org is your first and best source for all of the information you’re looking for. From general topics to more of what you would expect to find here, 1000genomes.org has it all. We hope you find what you are searching for!


      If there's any way to get an output from freebayes that looks more like the vcf format of samtools mpileup, I'd be interested to know.

      Comment

      • ekg
        Member
        • Apr 2010
        • 36

        #4
        Originally posted by garwuf View Post
        I have run Freebayes on some of my old bam alignments, which were already evaluated with samtools, gigabayes and gatk. None of the polymorphisms discovered by Freebayes matched the real ones. Actually, it missed very well defined snps, and pointed instead at some positions, which do not look anything special. DP doesn't correspond to real coverage either (no matter if to consider quality or not). Maybe just a problem with old bam formats?
        I'd guess this is a problem with BAM format changes or the specific (older) version which you were using, but I'm not sure. This sounds pretty strange--- we don't see this at all in testing and if we did we certainly couldn't use freebayes as a detector if it behaved like this.

        What happens with this data when you use the most recent version?

        Comment

        • ekg
          Member
          • Apr 2010
          • 36

          #5
          Originally posted by cigsit View Post
          Hi,

          I have just started using FreeBayes as a comparison to samtools as they both take BAMs and produce a VCF output which is ideal for scripting. FreeBayes actually seems like the ideal free-standing, simple and fast SNP caller I have been longing for, however the values in the VCF INFO column do not seem to match what is in the alignment.
          In particular the DP value almost never seems to match what I can see in alignment viewers. It is always less than the number of reads I see stacked at the SNP position while VCFv4.1 claims that DP should represent the _total_ read depth.
          Additionally, the AC (Total number of alternate alleles in called genotypes) and AN (Total number of alleles in called genotypes) values seem to almost never vary no matter what the read depth and number of alt alleles at a SNP position. To be more precise AC is always either 1 or 2 and AN seems fixed at 2 no matter what.

          Is this a known quirk of FreeBayes? These are very important values that I need to parse from the VCF output but they just make no sense after having used samtools for a few years.

          Thanks.
          I believe I know what's going on here.

          In the old versions, freebayes was designed to behave like gigabayes/bambayes, which used BQ and MQ filters to remove a lot of low-quality reads.

          However, this was ultimately shown to be a bad idea, and so the default filters were removed. I think a lot of users got very poor results when their MQs weren't well-calibrated. (I eventually settled on minimum input filters requiring at least 2 observations comprising 20% of reads in a single individual, which I've just made default in the recent freebayes revisions.)

          So, the point is that the reported DP is the post-filter depth. And, if you were running with a minimum mapping quality filter of 30 and a minimum base quality filter of 20, the DP might get quite low.

          If you run with the most recent version, you should get results that are more sensible.

          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-22-2026, 11:13 AM
          0 responses
          48 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 10:48 AM
          0 responses
          36 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          46 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          46 views
          0 reactions
          Last Post SEQadmin2  
          Working...