This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Remove homozygous reference SNPS present in ALL samples of multi-sample VCF file

Hello.

I did I subset of 50 samples of a 192 sample VCF file. Some of the SNPs present in the new subset VCF are not present (i.e are 0/0) in all 50 samples. I would like to remove them, preferably using an existing tool.

I tried bcftools -e 'GT[0-49]="RR"' but that removes SNPs when even one sample is 0/0.

Thanks.

vcf

Hey Aisha, thank you. Yes I did see that post earlier. I tried the bcftools suggestion and it didn't work. I have trouble installing Pierre's vcffilterjdk. I am yet to try SnpSift.

0 answers

No answers yet.

Log in to answer this question.