Currently, n-top linear associations are selected based on values of q_value
(column sorted increasing) and values of rho (column sorted decreasing)
Value
a vector with name of the n-top linear associations;
when n_top will be higher than number of available features - only available will be returned.
Examples
# \donttest{
Y <- matrix(seq(0.5, 2, length.out = 50), nrow = 50,
dimnames = list(sprintf("row_%s", 1:50), "met_1"))
X <- matrix(
withr::with_seed(42, sample(c(NA, seq(0.35, 23.5, 1.25)),
size = 50*20, replace = TRUE)),
nrow = 50,
dimnames = list(sprintf("row_%s", 1:50), sprintf("feat_%s", 1:20)))
tab_assoc <- calc_assoc(X, Y)
gDRplots:::.get_n_top_asssoc(tab_assoc)
#> [1] "feat_11" "feat_8" "feat_15" "feat_1"
# }