extract_samples | R Documentation |
This function reads PLINK files, extracts a subset of samples, and writes new PLINK files using write_plink
. It's probably slower than running the equivalent command in PLINK directly, but it can be useful to do this from within R.
When inds
or pops
is provided, only a subset of samples will be extracted.
extract_samples(
inpref,
outpref,
inds = NULL,
pops = NULL,
overwrite = FALSE,
verbose = TRUE
)
inpref |
Prefix of the PLINK input files |
outpref |
Prefix of the PLINK output files |
inds |
Individuals which should be extracted |
pops |
Populations which should be extracted. Can not be provided together with |
overwrite |
Set this to |
verbose |
Print progress updates |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.