Entering edit mode
5.9 years ago
mab658
▴
120
I have a very big compressed vcf file with over 8000 samples. I wanted to extract out data for those samples whose name start with first three characters "TMS" so that I can have a new vcf file with those samples and their variants data only. Could anyone help me out with the vcftools or bcftools command to accomplish this? Thanks
zgrep "#CHROM"...
;)Thanks Pierre. I am able to extract out the samples. All works fine.
If an answer was helpful you should upvote it, if the answer resolved your question you should mark it as accepted.