How could I get population or individual specific genotypes from multi sample VCF file
1
0
Entering edit mode
4.4 years ago
nagarsaggi ▴ 40

I build a neighbour-joining tree from a multi-sample (genotype) vcf file and could see the population structure in the samples. I was wondering if I could extract population-specific variant/genotype information from vcf file (present in one population but absent in other).

snp • 1.4k views
ADD COMMENT
2
Entering edit mode
4.4 years ago

so you want to extract GT from subsets of samples from your VCF ? If yes use bcftools view -S sample_list.txt input.vcf > subset.vcf where sample_list.txt is a text file containing the list of sample id you want to extract (one sample id per line).

ADD COMMENT

Login before adding your answer.

Traffic: 1540 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