This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to get population specific SNPs from a vcf file

I've got a vcf file and There are 500 individuals in it.Of these 500 individuals, 30 individuals form group A.How can i get all SNPs specific to GroupA (Present in at least one of the 30 individuals and not in the remaining 470).

Looking forward to your answer.

Think you

specific snps population

1 answer

bcftools view --samples-file list-in-groupA.txt -O u in.vcf | bcftools view -i 'AC>0'

Log in to answer this question.