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
        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 on Modified Bases...
        Yesterday, 07:01 AM
      • seqadmin
        Current Approaches to Protein Sequencing
        by seqadmin


        Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
        04-04-2024, 04:25 PM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 04-11-2024, 12:08 PM
      0 responses
      39 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 10:19 PM
      0 responses
      41 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 09:21 AM
      0 responses
      35 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-04-2024, 09:00 AM
      0 responses
      55 views
      0 likes
      Last Post seqadmin  
      Working...
      X