使用plink将基因型转化为0,1,2

如果想将基因型转化为0,1,2
可以使用命令:plink --bfile file --recodeA --out recodefile

如果想将基因型转化为0,1
可以使用命令:plink --bfile file --recodeD --out recodefile

如果想将基因型同时转化为0,1和0,1,2
可以使用命令:plink --bfile file --recodeAD --out recodefile

原文地址:https://www.cnblogs.com/chenwenyan/p/13267410.html