Unconfigured Ad

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

    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

      • mylaser
        Reply to Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
        by mylaser
        Kheloyar – Everything You Need to Know About Kheloyaar Login and Kheoyar Id
        If you are looking for an online gaming platform that offers a user-friendly experience, Kheloyar has become a name that many users search for. Whether you're interested in creating a new account, accessing your dashboard through Kheloyaar Login, or learning how to obtain a Kheoyar Id, understanding the platform's features and account process is essential.
        This guide explains everything you need to know about...
        Today, 01:13 AM
      • SEQadmin2
        Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
        by SEQadmin2



        Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
        ...
        07-09-2026, 11:10 AM
      • SEQadmin2
        Cancer Drug Resistance: The Lingering Barrier to Rising Survival
        by SEQadmin2



        Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

        There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
        07-08-2026, 05:17 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 07-09-2026, 10:04 AM
      0 responses
      16 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-08-2026, 10:08 AM
      0 responses
      10 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-07-2026, 11:05 AM
      0 responses
      22 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-02-2026, 11:08 AM
      0 responses
      31 views
      0 reactions
      Last Post SEQadmin2  
      Working...