model_igraph | R Documentation |
Enter correlation matrix, calculate network modules, and Calculate the coordinates of the node.
model_igraph(cor = cor, method = "cluster_fast_greedy", seed = 12, Top_M = 20)
cor |
Correlation matrix Clustering Algorithm |
method |
Clustering Algorithm |
seed |
Set random seed |
# The algorithm igraph network layout. while, it saves time and the calculation speed is faster,This is the upgraded version.
By default, returns a list
cluster_fast_greedy:
cluster_walktrap:
cluster_edge_betweenness:
cluster_spinglass:
data.frame
Contact: Tao Wen 2018203048@njau.edu.cn Jun Yuan junyuan@njau.edu.cn Penghao Xie 2019103106@njau.edu.cn
Yuan J, Zhao J, Wen T, Zhao M, Li R, Goossens P, Huang Q, Bai Y, Vivanco JM, Kowalchuk GA, Berendsen RL, Shen Q Root exudates drive the soil-borne legacy of aboveground pathogen infection Microbiome 2018,DOI: doi: 10.1186/s40168-018-0537-x
data(ps)
result = corMicro (ps = ps,N = 100,r.threshold=0.8,p.threshold=0.05,method = "pearson")
#Extract correlation matrix
cor = result[[1]]
# building the node group
result2 <- model_igraph(cor = cor,
method = "cluster_fast_greedy",
seed = 12
)
node = result2[[1]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.