pca_vcf | R Documentation |
Perform PCA on a VCF file using 'akt pca' and consume result
pca_vcf(
vcf,
samples = NULL,
skeleton = NULL,
K = 10,
meta = NULL,
region = NULL,
useX = FALSE,
...
)
vcf |
path to VCF file; must be indexed |
samples |
optional character vector of sample IDs to which the analysis should be restricted |
K |
number of PCs to compute |
region |
genomic region on which to perform PCA, as |
... |
ignored |
This function generates a command-line call to akt pca
, whose output is directed to a set of
temporary files and then read into the R
session.
An object of classes data.frame
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.