https://github.com/cannin/shiny_network
Example R Shiny application cytoscape/cyjShiny
https://github.com/cannin/shiny_network
cytoscape shiny
Last synced: 3 months ago
JSON representation
Example R Shiny application cytoscape/cyjShiny
- Host: GitHub
- URL: https://github.com/cannin/shiny_network
- Owner: cannin
- License: apache-2.0
- Created: 2020-07-28T04:51:43.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-22T19:54:36.000Z (about 5 years ago)
- Last Synced: 2025-03-30T05:41:46.745Z (6 months ago)
- Topics: cytoscape, shiny
- Language: R
- Homepage:
- Size: 842 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Introduction
Example R Shiny application using the [Cytoscape cyjShiny](https://github.com/cytoscape/cyjShiny) widget. The example can:
* Map data values onto network
* Switch between networks (e.g., KEGG pathways)
* Display values of selected nodes on table
* Save results to PDF
# Installation
See shinyNetworkDemoApp.R for necessary packages
# Run
shiny::runApp("shinyNetworkDemoApp.R")
# File Descriptions
* data/conditions.rds: data.frame, rows are genes, columns are include the values of the genes for different conditions (or samples); each gene/condition has been pre-mapped to colors in the colors* columns
* data/PATHWAY.json: an already laid out network for cytoscape.js
* data/PATHWAY.rds: igraph version of the network, used for network export
* default_style.js: configuration for cytoscape.js
* shinyNetworkDemoApp.R: the Shiny app
* graphToJSON.R: converts graphNEL network to cytoscape.js; compatible with Cytoscape desktop