View source: R/calc_functions.R
| parameter_selection | R Documentation |
Full training step: cleans SNP matrix and tunes SVEN hyperparameters.
parameter_selection(
X,
R2 = 0.5,
betamax = 1,
n.cores = max(1, parallel::detectCores() - 1),
hitsize = "all",
MAF_threshold = 0.05
)
X |
Raw SNP matrix (dgCMatrix). |
R2 |
Heritability (default 0.5). |
betamax |
Maximum effect size magnitude (default 1). |
n.cores |
Number of cores (default: detectCores() - 1). |
hitsize |
One of "all", "small", "medium", "large" (default "all"). |
MAF_threshold |
MAF cutoff (default 0.05). |
A list containing the original SNP matrix, cleaned SNP matrix, optimal parameters, MAF threshold, expected hit size, and number of cores used. The list is assigned class "svenetics_trained" for use in downstream functions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.