Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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!

  • #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


    • #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

      • seqadmin
        Recent Advances in Sequencing Analysis Tools
        by seqadmin


        The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
        05-06-2024, 07:48 AM
      • seqadmin
        Essential Discoveries and Tools in Epitranscriptomics
        by seqadmin




        The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
        04-22-2024, 07:01 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 05-07-2024, 06:57 AM
      0 responses
      12 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-06-2024, 07:17 AM
      0 responses
      16 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-02-2024, 08:06 AM
      0 responses
      23 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-30-2024, 12:17 PM
      0 responses
      24 views
      0 likes
      Last Post seqadmin  
      Working...
      X