This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Removal of multiple samples from vcf file

I have a vcf file which has been filtered "vcftools --vcf file_filtered.vcf --maf 0.05 --max-missing 0.8 --min-meanDP 10 --recode --out snp_filtered_0.05.vcf.gz" this output file will be used to remove 13 samples from .vcf file.gz. Kindly help me to do. After wards I will do haploview.

vcftools

1 answer

bcftools view --samples-file file

    -S, --samples-file [^]<file>  file of samples to include (or exclude with "^" prefix)

Is there any file type. Because I mentioned *.txt, it gave an error unknown file type

Its executed ..Thank you!

Log in to answer this question.