Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JadeB
    Junior Member
    • Oct 2014
    • 5

    #1

    Filtering VCF file

    Hi,

    I'm currently trying to filter my VCF file. I'm working on mtDNA, so I'd like to exclude heterozygous SNP. To do so, I'v tried to use bcftools filter and bcftools query, but I don't manage to keep the GT 1/1 data.

    More precisely :

    bcftools filter -s LowQual -e '%QUAL<20 || DP>1200 || GT!="1/1"' data.vcf > data_filt.vcf

    answers : "No such INFO field: GT"
    bcftools filter -s LowQual -e '%QUAL<20 || DP>1200 || FORMAT/GT!="1/1"' data.vcf > data_filt.vcf

    answers : " Error: the tag "INFO/AT/GT" is not defined in the VCF header"
    bcftools filter -s LowQual -e '%QUAL<20 || DP>1200 || FMT/GT!="1/1"' data.vcf > data_filt.vcf

    Answers : No error message, I've a new vcf file, but data are not correctly filtered, all of them are LowQual identified (and all pass if I change != to ==)
    Do you have any idea how I could filter my data ? (except something like cat data.vcf | grep 1/1 > data_filt.vcf)

    I'm using bcftools 0.2.0-rc8-5-g0e06231, samtools 1.1.

    EDIT : no more problem with bcftools 1.1
    Last edited by JadeB; 10-27-2014, 06:46 AM. Reason: solved

Latest Articles

Collapse

  • kinpict.com
    Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
    by kinpict.com
    The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
    Today, 06:37 PM
  • SEQadmin2
    16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
    by SEQadmin2





    NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
    10-30-2026, 06:46 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, 11-12-2026, 07:59 AM
0 responses
27 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 11-05-2026, 09:25 AM
0 responses
35 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 11-03-2026, 11:54 AM
2 responses
56 views
0 reactions
Last Post kinpict.com  
Started by SEQadmin2, 10-28-2026, 09:57 AM
0 responses
175 views
0 reactions
Last Post SEQadmin2  
Working...