Compute principal components of SNPs annotated to genes.
1 2 3 4 5 6 7 8 9 | compute_gene_pcs(
path,
data,
stand = "binom2",
explain_var = 0.95,
max_pcs = 50,
num_parts = 1,
rsvd_threshold = Inf
)
|
path |
Path to output file. |
data |
A |
stand |
Which standardization method to use. One of "none", "binom" (old Eigenstrat-style), "binom2" (new Eigenstrat-style), "sd" (zero-mean unit-variance) or "center" (zero mean). |
explain_var |
Restrict number of PCs to explain at least this fraction of variance. |
max_pcs |
Return at most this number of PCs. |
num_parts |
Number of parts to write output to. |
rsvd_threshold |
Use randomized SVD when number of variables exceeds this threshold. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.