plink --file b --pheno phe.txt --assoc --out re --allow-no-sex
「代码解释:」
--file为plink的文件名的前缀
--pheno 为plink分析GWAS的表型数据,注意前两列为FID IID,第三列为分析的性状
--assoc 利用的是LM模型
--out 输出文件名
--allow-no-sex 因为数据中没有性别信息,需要加上这个参数,允许没有性别的数据
「运行日志:」
PLINK v1.90b6.17 64-bit (28 Apr 2020) www.cog-genomics.org/plink/1.9/ (C) 2005-2020 Shaun Purcell, Christopher Chang GNU General Public License v3 Logging to re.log. Options in effect: --allow-no-sex --assoc --file b --out re --pheno phe.txt
7820 MB RAM detected; reserving 3910 MB for main workspace. .ped scan complete (for binary autoconversion). Performing single-pass .bed write (10000 variants, 1500 people). --file: re-temporary.bed + re-temporary.bim + re-temporary.fam written. 10000 variants loaded from .bim file. 1500 people (0 males, 0 females, 1500 ambiguous) loaded from .fam. Ambiguous sex IDs written to re.nosex . 1500 phenotype values present after --pheno. Using 1 thread (no multithreaded calculations invoked). Before main variant filters, 1500 founders and 0 nonfounders present. Calculating allele frequencies... done. 10000 variants and 1500 people pass filters and QC. Phenotype data is quantitative. Writing QT --assoc report to re.qassoc ... done.
plink --file b --pheno phe.txt --allow-no-sex --linear --out re
「运行日志:」
PLINK v1.90b6.17 64-bit (28 Apr 2020) www.cog-genomics.org/plink/1.9/ (C) 2005-2020 Shaun Purcell, Christopher Chang GNU General Public License v3 Logging to re.log. Options in effect: --allow-no-sex --file b --linear --out re --pheno phe.txt
7820 MB RAM detected; reserving 3910 MB for main workspace. .ped scan complete (for binary autoconversion). Performing single-pass .bed write (10000 variants, 1500 people). --file: re-temporary.bed + re-temporary.bim + re-temporary.fam written. 10000 variants loaded from .bim file. 1500 people (0 males, 0 females, 1500 ambiguous) loaded from .fam. Ambiguous sex IDs written to re.nosex . 1500 phenotype values present after --pheno. Using 1 thread (no multithreaded calculations invoked). Before main variant filters, 1500 founders and 0 nonfounders present. Calculating allele frequencies... done. 10000 variants and 1500 people pass filters and QC. Phenotype data is quantitative. Writing linear model association results to re.assoc.linear ... done.