pca_plink | R Documentation |
Perform PCA using 'plink2'
pca_plink(
bfile,
skeleton = NULL,
samples = NULL,
max_missing = 0,
min_maf = 0,
...
)
skeleton |
optional character vector fo sample IDs to use for constructing PCs |
samples |
optional character vector of sample IDs to project (if using 'skeleton', should include all reference samples) |
max_missing |
input filter for 'plink' corresponding to '–geno' |
min_maf |
input filter for 'plink' corresponding to '–maf' |
... |
ignored |
vcf |
path to 'plink' binary fileset (bed/bim/fam) |
This function generates command-line calls to plink2
, whose output is directed to a set of
temporary files and then read into the R
session. This requires the hottest version (alpha 3 or newer)
of plink2
.
An object of classes tbl_df
and pca_result
whose columns are the projections of
samples onto PCs. Eigenvalues, expressed as proportion of variance explained, are returned as an attribute.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.