readFAM | R Documentation |
Read sample meta-data form the fam file of a PLINK1 BED fileset.
readFAM(fam)
fam |
prefix or name of a PLINK file. |
There are six columns in a bim file
fid: family ID;
iid: individual ID, default row name used by [readBED]
;
mom: maternal ID;
dad: paternal ID;
sex: individual sex.
phe: phenotype, not often used;
The PLINK1 bim file has no header line, this is changed in PLINK2.
The columns "sex" and "phe" are mostly the legency of early GWAS, nowerdays it is common to provide sex, among other covariates, and multiple phenotypes in a separate file.
data frame of individuals, loaded from FAM.
pfx <- file.path(system.file("extdata", package="plinkFile"), "m20")
fam <- readFAM(pfx)
fam
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.