How to FLAG low quality SNPs in samtools VCF
1
0
Entering edit mode
4.9 years ago
hellbio ▴ 520

Dear all,

I have been using the below command to remove low quality SNPs from VCF generated through samtools mpileup and bcftools.

vcfutils.pl varFilter -Q 40 -d 10 input.vcf | awk '$6>=40' > output.vcf

However, how can i only flag these variants as LOWQual within the VCF instead of removing from the VCF generated by mpileup/bcftools.

I know GATK has something to FLAG variants. In this case the VCF is from mpileup/bcftools which may not have the required annotation to work with GATK. Could someone point a way to do this.

samtools VCF • 1.2k views
ADD COMMENT
1
Entering edit mode
4.9 years ago

Hello,

use bcftools filter to set a Flag in in the FILTER column;

$ bcftools filter -e 'QUAL<40' -s "LowQual" input.vcf

fin swimmer

ADD COMMENT

Login before adding your answer.

Traffic: 1362 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6