You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For large datasets of tree-ring series see also `vignette("large_datasets_communities")`
62
+
61
63
### Visualization in Cytoscape {#visualization_cytoscape}
62
64
63
65
After creating the network in R, it is possible to visualize the network using Cytoscape. The main advantage is that visualisation in Cytoscape is more easy, intuitive and visual. In addition, it is very easy to automate workflows in Cytoscape with R (using [RCy3](https://bioconductor.org/packages/release/bioc/html/RCy3.html)). For this purpose we need to start Cytoscape firstly. After Cytoscape has completely loaded, the next steps can be taken.
@@ -71,31 +73,9 @@ After creating the network in R, it is possible to visualize the network using C
71
73
72
74
{width="800"}
73
75
74
-
## Usage for large datasets
75
-
76
-
When using larger datasets calculating the table with similarities can take a lot of time, but finding communities even more. It is therefore recommended to use of parallel computing for Clique Percolation: `clique_community_names_par(network, k=3, n_core = 6)`. This reduces the amount of time significantly.
77
-
78
-
The workflow is similar as above, but with minor changes:
79
-
80
-
1. load network
81
-
82
-
2. compute similarities
83
-
84
-
3. find the maximum clique size: `igraph::clique_num(network)`
85
-
86
-
4. detect communities for each clique size separately:
5. merge these into a single `data frame` by `com_cpm_all <- rbind(com_cpm_k3,com_cpm_k4, com_cpm_k5,... )`
76
+
A more complete description of using Cytoscape with this package can be found here: `vignette("large_datasets_communities")`
95
77
96
-
6. create table for use in cytoscape with all communities: `com_cpm_all <- com_cpm_all %>% dplyr::count(node, com_name) %>% tidyr::spread(com_name, n)`
97
78
98
-
7. Continue with the visualisation in Cytoscape, see the previous [section on visualization in Cytoscape](#visualization_cytoscape)
When using larger datasets of tree-ring series, calculating the table with similarities can take a lot of time, but finding communities even more. It is therefore recommended to use of parallel computing for Clique Percolation: `clique_community_names_par(network, k=3, n_core = 6)`. This reduces the amount of time significantly.
24
+
25
+
The workflow is similar as described in the `vignette("dendronetwork")`, but with minor changes:
26
+
27
+
1. load network
28
+
29
+
2. compute similarities
30
+
31
+
3. find the maximum clique size: `igraph::clique_num(network)`
32
+
33
+
4. detect communities for each clique size separately:
5. merge these into a single `data frame` by `com_cpm_all <- rbind(com_cpm_k3,com_cpm_k4, com_cpm_k5,... )`
42
+
43
+
6. create table for use in cytoscape with all communities: `com_cpm_all <- com_cpm_all %>% dplyr::count(node, com_name) %>% tidyr::spread(com_name, n)`
44
+
45
+
7. Continue with the visualisation in Cytoscape, see the relevant section in the `vignette("dendronetwork")`
0 commit comments