how to choose some samples from a vcf files
1
1
Entering edit mode
3.8 years ago
evelyn ▴ 230

Hello,

I have a vcf file with 200 samples. I need only 100 specific samples out of the 200 in total for some downstream analysis. I there a way to filter out these samples without parsing vcf or changing the file format.

Thank you!

snp • 819 views
ADD COMMENT
2
Entering edit mode
3.8 years ago

For all your VCF manipulations you should first have a look at the bcftools documentation, that's the recommended tool nowadays and has a lot of features. In your case, you need bcftools view with -s or -S.

ADD COMMENT

Login before adding your answer.

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