3. Network Visualization using Cytoscape
Step 1: Download Cytoscape to your Laptop
- Cytoscape: https://cytoscape.org/
- Cytoscape Download website: https://cytoscape.org/download.html
Step 2: Download Smoothie Outputs to your Laptop
- The function smoothie.make_spatal_network saves output files
network_[...].csvandnodelabels_[...].csv. Download these two files from your server to your local laptop with Cytoscape installed. - Additionally, download
smoothie_cytoscape_colors.xmlfrom the Smoothie Github https://github.com/caholdener01/Smoothie/blob/main/smoothie_cytoscape_colors.xml.
Step 3: Import Files into Cytoscape
- File > Import > Network From File...: Select
network_[...].csvfrom your laptop. - File > Import > Table From File...: Select
nodelabels_[...].csvfrom your laptop. -
File > Import > Styles From File... Select
smoothie_cytoscape_colors.xmlfrom your laptop.
Step 4: Configure Network Styles
-
Change your current default style to the new smoothie_cytoscape_colors style we just imported.

-
The network nodes should be colored by module label now. You may adjust other network stylistic features within the styles tab too.

(Optional) Step 5: Tidy up the Network's Appearance
-
Add an edge filter for the network (Use the PCC column).

-
Slightly increase the PCC lower filter value (by 0.05 to 0.1) and apply the filter.

-
Next, select nodes connected by selected edges, and hide non-selected nodes and edges.

-
Export the network.

(Optional) Step 6: Explore Network Further
Cytoscape has many useful features. You can create different node/edge filters or explore more built-in features here: https://cytoscape.org/.