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
)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.
Raw SNP matrix (dgCMatrix).
Heritability (default 0.5).
Maximum effect size magnitude (default 1).
Number of cores (default: detectCores() - 1).
One of "all", "small", "medium", "large" (default "all").
MAF cutoff (default 0.05).