使用bcftools提取指定樣本的vcf文件(extract specified samples in vcf format)


1、下載安裝bcftools

2、准備樣本ID文件,這里命名為samplelistname.txt,一個樣本一行,如下所示:

sample1

sample2

sample3

3、輸入命令:

bcftools view -S samplelistname.txt /1000genomes/ALL.chr16.phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf.gz -Ov > samplelist_1000Genomes.vcf

 

參考鏈接:

https://www.biostars.org/p/184950/

https://samtools.github.io/bcftools/bcftools.html#view


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM