Calculate the eigenvalue of each module and correlation of nodes and eigenvalue (node_eigen_cor).

Plot the expression of each modules

module_eigen(go_m, totu, cor_method = "spearman")

module_expression(
  go_m,
  totu,
  group = NULL,
  r_threshold = 0.6,
  x_order = NULL,
  facet_param = NULL,
  plot_eigen = FALSE
)

Arguments

go_m

module metanet

totu

original abundance table used for module_eigen().

cor_method

"pearson", "kendall", "spearman"

group

group variable for totu

r_threshold

the threshold for node_eigen_cor, default: 0.6.

x_order

order the x axis.

facet_param

parameters parse to facet_wrap, e.g. nrow=2.

plot_eigen

plot the eigen value line.

Value

module metanet with module_eigen

Examples

data("otutab", package = "pcutils")
t(otutab) -> totu
data("c_net")
module_detect(co_net, n_node_in_module = 30) -> co_net_modu
module_eigen(co_net_modu, totu) -> co_net_modu
module_expression(co_net_modu, totu)