一、提取样本:

提取样本见命令行:

plink --bfile file --noweb --keep sampleID.txt --recode --make-bed --out sample 

 其中,sampleID.txt第一列为提取的样本Family ID,第二列为Within-family ID(IID)

同样的,如果是去除样本,则用参数“--remove”

二、提取SNP位点

plink --bfile file --extract snp.txt --make-bed --out snp   

 

其中,snp.txt的文件格式如下,一个SNP位点一行:

rs1

rs2

rs3

 

相关文章:

  • 2021-10-28
  • 2022-12-23
  • 2022-02-09
  • 2021-11-17
  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
  • 2021-11-22
猜你喜欢
  • 2021-09-09
  • 2021-11-09
  • 2021-06-03
  • 2021-11-28
  • 2021-09-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案