|
From: pd3 <pd...@sa...> - 2015-04-30 20:50:33
|
Hi Sébastien, your commands look fine, this is how it's supposed to work. However, I was not able to reproduce the problem. Could you provide a small test case? Cheers, Petr On 2015-04-16 11:36, Sébastien Letort wrote: > Hi, > > Maybe I misunderstand, but I have not been able to filter my records : > > bcftools query -f '%FILTERn' infile.vcf.gz | sort | uniq -c > 345428 . > 24009 PASS > 23087 VQSRTrancheINDEL99.00to99.90 > 2255 VQSRTrancheINDEL99.90to100.00 > > To have only PASS, it's ok > bcftools view infile.vcf.gz -f PASS > | bcftools query -f '%FILTERn' | sort | uniq -c > 24009 PASS > > for VQSR* filters I can't > bcftools view infile.vcf.gz -f VQSRTrancheSNP99.90to100.00 > | bcftools query -f '%FILTERn' | sort | uniq -c > 345428 . > > my header > bcftools view infile.vcf.gz -h | grep FILTER= > ##FILTER=<ID=PASS,Description="All filters passed"> > ##FILTER=<ID=LowQual,Description="Low quality"> > ##FILTER=<ID=VQSRTrancheINDEL99.00to99.90,Description="Truth sensitivity > tranche level for INDEL model at VQS Lod: -4.1798 <= x < -0.7584"> > ##FILTER=<ID=VQSRTrancheINDEL99.90to100.00+,Description="Truth > sensitivity tranche level for INDEL model at VQS Lod < -915.6166"> > ##FILTER=<ID=VQSRTrancheINDEL99.90to100.00,Description="Truth > sensitivity tranche level for INDEL model at VQS Lod: -915.6166 <= x < > -4.1798"> > > Those filters are generated with VQSR method by GATK programs. > > bcftools -v > bcftools 1.2 > Using htslib 1.2.1 > > thanks, > > -- > Sébastien Letort - bio-informaticien > Inserm U1078, Génétique, Génomique fonctionnelle et Biotechnologies > 46 rue Félix Le Dantec > CS 51819 > 29218 BREST CEDEX 2 > Tel. 02.98.22.34.08 (EFS) > Tel. 02.98.01.82.37 (UBO) > > ------------------------------------------------------------------------------ > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT > Develop your own process in accordance with the BPMN 2 standard > Learn Process modeling best practices with Bonita BPM through live exercises > http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- [1] event?utm_ > source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF > _______________________________________________ > Vcftools-help mailing list > Vcf...@li... > https://lists.sourceforge.net/lists/listinfo/vcftools-help [2] Links: ------ [1] http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- [2] https://lists.sourceforge.net/lists/listinfo/vcftools-help -- The Wellcome Trust Sanger Institute is operated by Genome Research Limited, a charity registered in England with number 1021457 and a company registered in England with number 2742969, whose registered office is 215 Euston Road, London, NW1 2BE. |