Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RobinC
    Junior Member
    • Aug 2014
    • 2

    #1

    BCFtools will not filter fixed sites

    Hello all,

    I'm encountering a surprising problem while filtering a vcf file in bcftools (v1.1-52-ga2e5b56). It doesn't look like a proper bug but leaves be bewildered enough.

    I'm trying to filter out all variant sites, and retain only fixed sites. So, logically enough, I apply a filter to discard sites where minor allele count is above zero, with :

    bcftools view --max-ac 0:minor

    It mostly works, but only mostly : at some sites, the odd heterozygous individual is retained (0/1:2,1:3:30:30,0,65 for ex in a mostly 0/0 line). This is not a problem of a deadlock between two alleles with equal frequency (thus no minor), since this odd "1" is the only one with 100+ "0"s.

    So, I believe there must be some kind of hidden tolerance threshold somewhere, but, does any one have a workaround..?

    Thanks a lot for insight !

    Robin
  • RobinC
    Junior Member
    • Aug 2014
    • 2

    #2
    With a quick edit precision: this also applies to VCFtools..! here's an example :

    First, just scanning the VCF file manually:

    bash-4.1$ gunzip -c data.vcf.gz | grep '0/0' | grep '0/1' -v | grep '1/1' -v | grep '0/0' -c
    2408 ##these are ref:ref homozygous

    bash-4.1$ gunzip -c data.vcf.gz | grep '1/1' | grep '0/1' -v | grep '0/0' -v | grep '1/1' -c
    46180 ##these are alt:alt homozygous

    bash-4.1$ vcftools --gzvcf data.vcf.gz --max-mac 0 --recode --stdout | grep -c '0/1'
    0 #that's what I want, but then:

    bash-4.1$ vcftools --gzvcf data.vcf.gz --max-mac 0 --recode --stdout | grep -c '0/0'
    0 ##none of my 2408 ref:ref homozygotes has been retained !

    bash-4.1$ vcftools --gzvcf data.vcf.gz --max-mac 0 --recode --stdout | grep -c '1/1'
    46122 ##and some of the ref:ref have been dropped too.

    This is surprising, as both BCFtools and VCFtools explicity distinguish the notions of "minor allele" and "non-reference allele". So this should NOT be an issue.

    All ideas very much welcome !!

    Best

    Robin

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