# \donttest{
# a small subset keeps the example quick
G <- sim_data$G[1:150, , drop = FALSE]
Z <- sim_data$Z[1:150, , drop = FALSE]
Y <- sim_data$Y_normal[1:150]
fit <- estimate_lucid(G = G, Z = Z, Y = Y, lucid_model = "early",
family = "normal", K = 2, seed = 1008,
max_itr = 20, max_tot.itr = 50)
p <- plot_cluster_omic_profile(fit)
p[[1]]
# bar rendering, and more features
plot_cluster_omic_profile(fit, type = "bar", top_n = 15)[[1]]
# the ranking behind the figure
head(unique(attr(p[[1]], "profile_data")[, c("feature", "score")]))
# }
Run the code above in your browser using DataLab