module_expression: Calculate the eigenvalue of each module and correlation of...

module_eigenR Documentation

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

Description

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

Plot the expression of each modules

Usage

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

See Also

Other module: filter_n_module(), get_community(), get_module_eigen(), get_module(), module_detect(), module_net(), summary_module(), to_module_net(), zp_analyse()

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)

MetaNet documentation built on May 29, 2024, 1:21 a.m.