Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jmatés
    Member
    • Jan 2013
    • 14

    #1

    Vcf files: a little problem applying filters

    Hi all! It's my first post in SeqAnswers forum. This site is awesome !

    I'm struggling with a .vcf file that I'm trying to filter based on QUAL and DP fields. When I apply the filter and check if everything went well, I find that there are many variations that have not been filtered.

    I've used this command for generating and filtering the file:

    samtools mpileup -uf hg19.fa myfile.bam | bcftools view -bvcg - > var.raw.bcf

    bcftools view var.raw.bcf | /usr/share/samtools/vcfutils.pl varFilter -D500 > myfile.vcf

    cat myfile.vcf | vcf-annotate --filter Qual=30/MinDP=20 > myfile_filtered.vcf

    Here is a fragment of my file after being filtered. I've narrowed it for brevity:

    #CHROM POS ID REF ALT QUAL FILTER INFO
    chr1 237993724 . C T 86 . DP=14;VDB=0.00(...)

    chr1 237996076 . C G 158 . DP=166;VDB=0.0955(...)

    chr1 237996661 . C G 3.54 . DP=31;VDB=0.0792(...)

    chr1 237997087 . A G 225 . DP=220;VDB=0.0955(...)

    chr1 237997254 . C T 108 . DP=255;VDB=0.0733(...)

    chr3 8775457 . G A 44 PASS DP=50;VDB=0.0656(...)

    As you can see the first entry shoudn't pass the filter because the DP field is under the filter value, and the third entry has a bad quality. The others although meet the filter specifications are not tagged with a “PASS” label.

    I'm pretty sure that there isn't any problem with the vcf file before being filtered and I've been unable to find a threat with an issue like this... any help would be much appreciated.

    Thanks in advance!
  • aeonsim
    Member
    • Jun 2011
    • 46

    #2
    Not sure what's going on there but there are a number of other filtering tools that I'd recommend over vcf-annotate.

    http://snpeff.sourceforge.net/SnpSift.html is very powerful and feature rich and runs pretty much everywhere being java based.
    Or
    https://github.com/ekg/vcflib a clean set of tools for manipulating VCF files, vcffilter would do what you want.

    Comment

    • jmatés
      Member
      • Jan 2013
      • 14

      #3
      Originally posted by aeonsim View Post
      Not sure what's going on there but there are a number of other filtering tools that I'd recommend over vcf-annotate.

      http://snpeff.sourceforge.net/SnpSift.html is very powerful and feature rich and runs pretty much everywhere being java based.
      Or
      https://github.com/ekg/vcflib a clean set of tools for manipulating VCF files, vcffilter would do what you want.
      Thank you aeonsim! Giving them a look immediately.

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