This function identifies the most abundant taxa and distinguishes between nodes with statistically significant differences in their abundance (red) and those without (blue).
diff_nodes_graph.RdThis function identifies the most abundant taxa and distinguishes between nodes with statistically significant differences in their abundance (red) and those without (blue).
Arguments
- n
Number of nodes to consider.
- mat_list
List of abundance matrices (preprocessed by T_collapse).
- g.list
List of igraph objects (multilayer network), just 2 layers.
- alpha
Significance. It must be a number between 0 and 1.
- T_collapsed
Abundance table collapsed at a certain taxonomic level (preprocessed by T_collapse).
Examples
data ("tc_dstoolA")
data ("mlnet_dstoolAB")
mlst <- list(tc_dstoolA, tc_dstoolB)
diff_nodes_graph (tc_dstoolA, n=10, mat_list=mlst, g.list=mlnet_dstoolAB, alpha=0.5)
#> IGRAPH d5d9b68 UNW- 152 22 --
#> + attr: name (v/c), colorA (v/c), weight (e/n)
#> + edges from d5d9b68 (vertex names):
#> [1] Acidobacteriaceae --Sinobacteraceae
#> [2] Oceanospirillaceae--Bacteriovoracaceae
#> [3] Oceanospirillaceae--Methylophilaceae
#> [4] Bacteriovoracaceae--Methylophilaceae
#> [5] Oceanospirillaceae--Methylocystaceae
#> [6] Bacteriovoracaceae--Methylocystaceae
#> [7] Methylophilaceae --Methylocystaceae
#> [8] Acidobacteriaceae --Streptomycetaceae
#> + ... omitted several edges