PLINK v1.90b5.364-bit (21 Feb 2018) www.cog-genomics.org/plink/1.9/ (C) 2005-2018 Shaun Purcell, Christopher Chang GNU General Public License v3 Logging to hapmap-ceu.log. Options in effect: --bfile hapmap-ceu --out hapmap-ceu --recode
1031523 MB RAM detected; reserving 515761 MB for main workspace. 2239392 variants loaded from .bim file. 60 people (30 males, 30 females) loaded from .fam. Using 1 thread (no multithreaded calculations invoked). Before main variant filters, 60 founders and0 nonfounders present. Calculating allele frequencies... done. Warning: 59 het. haploid genotypes present(see hapmap-ceu.hh ); many commands treat these as missing. Total genotyping rate is 0.992022. 2239392 variants and60 people pass filters and QC. Note: No phenotypes present. --recode ped to hapmap-ceu.ped + hapmap-ceu.map ... done.
PLINK v1.90b5.364-bit (21 Feb 2018) www.cog-genomics.org/plink/1.9/ (C) 2005-2018 Shaun Purcell, Christopher Chang GNU General Public License v3 Logging to test_vcf.log. Options in effect: --make-bed --out test_vcf --vcf ALL.chr21.vcf.gz
1031523 MB RAM detected; reserving 515761 MB for main workspace. --vcf: test_vcf-temporary.bed + test_vcf-temporary.bim + test_vcf-temporary.fam written. 1105538 variants loaded from .bim file. 2504 people (0 males, 0 females, 2504 ambiguous) loaded from .fam. Ambiguous sex IDs written to test_vcf.nosex . Using 1 thread (no multithreaded calculations invoked). Before main variant filters, 2504 founders and0 nonfounders present. Calculating allele frequencies... done. Total genotyping rate is 0.999787. 1105538 variants and2504 people pass filters and QC. Note: No phenotypes present. --make-bed to test_vcf.bed + test_vcf.bim + test_vcf.fam ... done.
PLINK v1.90b5.364-bit (21 Feb 2018) www.cog-genomics.org/plink/1.9/ (C) 2005-2018 Shaun Purcell, Christopher Chang GNU General Public License v3 Logging to selectedIndividuals.log. Options in effect: --bfile hapmap-ceu --keep list.txt --make-bed --out selectedIndividuals
1031523 MB RAM detected; reserving 515761 MB for main workspace. 2239392 variants loaded from .bim file. 60 people (30 males, 30 females) loaded from .fam. --keep: 60 people remaining. Using 1 thread (no multithreaded calculations invoked). Before main variant filters, 60 founders and0 nonfounders present. Calculating allele frequencies... done. Warning: 59 het. haploid genotypes present(see selectedIndividuals.hh ); many commands treat these as missing. Total genotyping rate is 0.992022. 2239392 variants and60 people pass filters and QC. Note: No phenotypes present. --make-bed to selectedIndividuals.bed + selectedIndividuals.bim + selectedIndividuals.fam ... done.
PLINK v1.90b5.364-bit (21 Feb 2018) www.cog-genomics.org/plink/1.9/ (C) 2005-2018 Shaun Purcell, Christopher Chang GNU General Public License v3 Logging to selectedSNP.log. Options in effect: --bfile hapmap-ceu --extract snp_name.txt --make-bed --out selectedSNP
1031523 MB RAM detected; reserving 515761 MB for main workspace. 2239392 variants loaded from .bim file. 60 people (30 males, 30 females) loaded from .fam. --extract: 20 variants remaining. Using 1 thread (no multithreaded calculations invoked). Before main variant filters, 60 founders and0 nonfounders present. Calculating allele frequencies... done. Total genotyping rate is 0.995833. 20 variants and60 people pass filters and QC. Note: No phenotypes present. --make-bed to selectedSNP.bed + selectedSNP.bim + selectedSNP.fam ... done.
PLINK v1.90b6.2164-bit (19 Oct 2020) www.cog-genomics.org/plink/1.9/ (C) 2005-2020 Shaun Purcell, Christopher Chang GNU General Public License v3 Logging to Allele_Frequency.log. Options in effect: --bfile hapmap-ceu --freq --out Allele_Frequency
15236 MB RAM detected; reserving 7618 MB for main workspace. 2239392 variants loaded from .bim file. 60 people (30 males, 30 females) loaded from .fam. Using 1 thread (no multithreaded calculations invoked). Before main variant filters, 60 founders and0 nonfounders present. Calculating allele frequencies... done. Total genotyping rate is 0.992022. --freq: Allele frequencies(founders only) written to Allele_Frequency.frq . Warning: 59 het. haploid genotypes present(see Allele_Frequency.hh ); many commands treat these as missing.
查看結(jié)果,結(jié)果文件是Allele_Frequency.frq
$ head Allele_Frequency.frq CHR SNP A1 A2 MAF NCHROBS 1 rs12565286 C G 0.0678118 1 rs12138618 A G 0.05833120 1 rs3094315 G A 0.1552116 1 rs3131968 A G 0.125120 1 rs12562034 A G 0.09167120 1 rs2905035 A G 0.125120 1 rs12124819 G A 0.3417120 1 rs2980319 A T 0.125120 1 rs4040617 G A 0.125120
$ plink --bfile hapmap-ceu --missing --out missing_data PLINK v1.90b6.2164-bit (19 Oct 2020) www.cog-genomics.org/plink/1.9/ (C) 2005-2020 Shaun Purcell, Christopher Chang GNU General Public License v3 Logging to missing_data.log. Options in effect: --bfile hapmap-ceu --missing --out missing_data
15236 MB RAM detected; reserving 7618 MB for main workspace. 2239392 variants loaded from .bim file. 60 people (30 males, 30 females) loaded from .fam. Using 1 thread (no multithreaded calculations invoked). Before main variant filters, 60 founders and0 nonfounders present. Calculating allele frequencies... done. Total genotyping rate is 0.992022. --missing: Sample missing data report written to missing_data.imiss, and variant-based missing data report written to missing_data.lmiss. Warning: 59 het. haploid genotypes present(see missing_data.hh ); many commands treat these as missing.
查看樣本缺失的文件:
$ head missing_data.imiss FID IID MISS_PHENO N_MISS N_GENO F_MISS 1334 NA12144 Y 15077 2239392 0.006733 1334 NA12145 Y 19791 2239392 0.008838 1334 NA12146 Y 13981 2239392 0.006243 1334 NA12239 Y 14072 2239392 0.006284 1340 NA06994 Y 16080 2239392 0.007181 1340 NA07000 Y 26113 2239392 0.01166 1340 NA07022 Y 17467 2239392 0.0078 1340 NA07056 Y 12133 2239392 0.005418 1341 NA07034 Y 20425 2239392 0.009121
PLINK v1.90b5.364-bit (21 Feb 2018) www.cog-genomics.org/plink/1.9/ (C) 2005-2018 Shaun Purcell, Christopher Chang GNU General Public License v3 Logging to plink.log. Options in effect: --bfile 1kg_EU_qc --hardy
1031523 MB RAM detected; reserving 515761 MB for main workspace. 851065 variants loaded from .bim file. 379 people (178 males, 201 females) loaded from .fam. Using 1 thread (no multithreaded calculations invoked). Before main variant filters, 379 founders and0 nonfounders present. Calculating allele frequencies... done. --hardy: Writing Hardy-Weinberg report(founders only) to plink.hwe ... done.
結(jié)果:
$ head plink.hwe CHR SNP TEST A1 A2 GENO O(HET)E(HET) P 1 rs1048488 ALL(NP) C T 9/136/234 0.3588 0.3238 0.03894 1 rs3115850 ALL(NP) T C 8/135/236 0.3562 0.319 0.02412 1 rs2519031 ALL(NP) G A 0/11/368 0.02902 0.0286 1 1 rs4970383 ALL(NP) A C 22/149/208 0.3931 0.3796 0.5881 1 rs4475691 ALL(NP) T C 13/118/248 0.3113 0.3078 1 1 rs1806509 ALL(NP) C A 67/171/141 0.4512 0.4809 0.2402 1 rs7537756 ALL(NP) G A 14/124/241 0.3272 0.3206 0.8725 1 rs28576697 ALL(NP) C T 37/161/181 0.4248 0.4278 0.9045 1 rs7523549 ALL(NP) T C 0/28/351 0.07388 0.07115 1 [dengfei@localhost 08_chapter]$ wc -l plink.hwe 851066 plink.hwe
6.4 雜合率檢測(cè)
--het
代碼:
plink --bfile 1kg_EU_qc --het
日志:
PLINK v1.90b5.364-bit (21 Feb 2018) www.cog-genomics.org/plink/1.9/ (C) 2005-2018 Shaun Purcell, Christopher Chang GNU General Public License v3 Logging to plink.log. Options in effect: --bfile 1kg_EU_qc --het
1031523 MB RAM detected; reserving 515761 MB for main workspace. 851065 variants loaded from .bim file. 379 people (178 males, 201 females) loaded from .fam. Using 1 thread (no multithreaded calculations invoked). Before main variant filters, 379 founders and0 nonfounders present. Calculating allele frequencies... done. 851065 variants and379 people pass filters and QC. Note: No phenotypes present. --het: 851065 variants scanned, report written to plink.het .
PLINK v1.90b5.364-bit (21 Feb 2018) www.cog-genomics.org/plink/1.9/ (C) 2005-2018 Shaun Purcell, Christopher Chang GNU General Public License v3 Logging to re1.log. Options in effect: --bfile 1kg_EU_qc --mind 0.1 --out re1 --recode
1031523 MB RAM detected; reserving 515761 MB for main workspace. 851065 variants loaded from .bim file. 379 people (178 males, 201 females) loaded from .fam. 0people removed due to missing genotype data(--mind). Using 1 thread(no multithreaded calculations invoked). Before main variant filters, 379 founders and 0 nonfounders present. Calculating allele frequencies... done. 851065 variants and 379 people pass filters and QC. Note: No phenotypes present. --recode ped to re1.ped + re1.map ... done.
PLINK v1.90b5.364-bit (21 Feb 2018) www.cog-genomics.org/plink/1.9/ (C) 2005-2018 Shaun Purcell, Christopher Chang GNU General Public License v3 Logging to re1.log. Options in effect: --bfile 1kg_EU_qc --geno 0.1 --out re1 --recode
1031523 MB RAM detected; reserving 515761 MB for main workspace. 851065 variants loaded from .bim file. 379 people (178 males, 201 females) loaded from .fam. Using 1 thread (no multithreaded calculations invoked). Before main variant filters, 379 founders and0 nonfounders present. Calculating allele frequencies... done. 0variants removed due to missing genotype data(--geno). 851065 variants and 379 people pass filters and QC. Note: No phenotypes present. --recode ped to re1.ped + re1.map ... done.
PLINK v1.90b5.364-bit (21 Feb 2018) www.cog-genomics.org/plink/1.9/ (C) 2005-2018 Shaun Purcell, Christopher Chang GNU General Public License v3 Logging to re1.log. Options in effect: --bfile 1kg_EU_qc --maf 0.01 --out re1 --recode
1031523 MB RAM detected; reserving 515761 MB for main workspace. 851065 variants loaded from .bim file. 379 people (178 males, 201 females) loaded from .fam. Using 1 thread (no multithreaded calculations invoked). Before main variant filters, 379 founders and0 nonfounders present. Calculating allele frequencies... done. 17767variants removed due to minor allele threshold(s) (--maf/--max-maf/--mac/--max-mac). 833298 variants and 379 people pass filters and QC. Note: No phenotypes present. --recode ped to re1.ped + re1.map ... done.
PLINK v1.90b5.364-bit (21 Feb 2018) www.cog-genomics.org/plink/1.9/ (C) 2005-2018 Shaun Purcell, Christopher Chang GNU General Public License v3 Logging to re1.log. Options in effect: --bfile 1kg_EU_qc --hwe 1e-5 --out re1 --recode
1031523 MB RAM detected; reserving 515761 MB for main workspace. 851065 variants loaded from .bim file. 379 people (178 males, 201 females) loaded from .fam. Using 1 thread (no multithreaded calculations invoked). Before main variant filters, 379 founders and0 nonfounders present. Calculating allele frequencies... done. --hwe: 25 variants removed due to Hardy-Weinberg exact test. 851040 variants and379 people pass filters and QC. Note: No phenotypes present. --recode ped to re1.ped + re1.map ... done.