readbfile | R Documentation |
read a PLINK bfile file into a matrix
readbfile(
bfile,
keep = NULL,
extract = NULL,
exclude = NULL,
remove = NULL,
chr = NULL,
fillmissing = F
)
bfile |
PLINK bfile (as character, without the .bed extension) |
keep |
samples to keep |
extract |
SNPs to extract |
exclude |
SNPs to exclude |
remove |
samples to remove |
chr |
a vector of chromosomes |
fillmissing |
Whether to fill missing values with 0 |
A genotype matrix of 0,1, and 2 (possibly with NaNs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.