diff --git a/single-cell-analysis/Session_4/links.txt b/single-cell-analysis/Session_4/links.txt new file mode 100644 index 0000000..50fbb5c --- /dev/null +++ b/single-cell-analysis/Session_4/links.txt @@ -0,0 +1,2 @@ +Link to gslides: https://docs.google.com/presentation/d/1ll7wNyUAyfA52gj5A5w3TTA3lCw4ufcllTWCzIJLKPk/edit?usp=sharing +Link to automation tutorials: https://github.com/cytoscape/cytoscape-automation/wiki#workshops-and-use-cases \ No newline at end of file diff --git a/single-cell-analysis/Session_4/scNetViz-Pico2021.pptx b/single-cell-analysis/Session_4/scNetViz-Pico2021.pptx deleted file mode 100644 index 09085ba..0000000 Binary files a/single-cell-analysis/Session_4/scNetViz-Pico2021.pptx and /dev/null differ diff --git a/single-cell-analysis/Session_4/use_case_1.Rmd b/single-cell-analysis/Session_4/use_case_1.Rmd deleted file mode 100644 index 0f5536a..0000000 --- a/single-cell-analysis/Session_4/use_case_1.Rmd +++ /dev/null @@ -1,87 +0,0 @@ ---- -title: "scNetViz: Use case #1" -author: "Krishna Choudhary, Alex Pico" -output: html_document ---- - -```{r setup, include=FALSE} -knitr::opts_chunk$set(echo = TRUE) -``` - -This use case will demonstrate analyzing and visualizing single cell datasets from within Cytoscape to generate network views of clusters of differentiated genes per cell population. In order to control Cytoscape from R, we'll need to install the RCy3 pacakge: - -# Installation -```{r} -if(!"RCy3" %in% installed.packages()){ - install.packages("BiocManager") - BiocManager::install("RCy3") -} -library(RCy3) -``` - -The whole point of RCy3 is to connect with Cytoscape, so you will need to install and launch Cytoscape: - -* Download the latest Cytoscape from http://www.cytoscape.org/download.php -* Complete installation wizard -* Launch Cytoscape - -```{r} -cytoscapePing() -``` - -For this use case, you'll also need two Cytoscape apps: - * [scNetViz app](http://apps.cytoscape.org/apps/scnetviz) to work with single cell datasets in Cytoscape - * [stringApp](https://apps.cytoscape.org/apps/stringapp) to perform enrichment analysis using the STRING webservice - -```{r} -installApp('scNetViz') -installApp('STRINGapp') -``` - -In this example, we will browse a single cell expression atlas, explore a particular dataset, perform differential expression analysis based on provided categories, generate networks from the top genes from each category, and functionally characterize and visualize the networks. - -# Load single cell dataset -Use the accession number of single-cell experiment to pull data from the [Single-Cell Experiment Atlas](https://www.ebi.ac.uk/gxa/sc/experiments) of EMBL-EBI. - - -```{r} -#Load data with Accession number E-GEOD-81383 -RCy3::commandsRun('scnetviz load gxa experiment accession=E-GEOD-81383') -``` - -This loads the data and opens an experiment table with three tabs, named _TPM_, _Categories_, and _DiffExp_. - -# Perform differential expression analysis -Run differential expression analysis for the row with `true` value of `sel.K` (default). -```{r} -RCy3::commandsRun('scnetviz calculate diffexp accession=E-GEOD-81383') -``` - -# Generate networks -Fetch protein-protein interaction networks from the [STRING](https://string-db.org/) database. - -```{r} -RCy3::commandsRun('scnetviz create network accession=E-GEOD-81383') -``` - -# Check resulting networks -Check the networks available in the current Cytoscape session. -```{r} -RCy3::commandsRun('network list') -``` - -# Perform functional enrichment analysis -Perform functional enrichment analysis for the network selected in the current session using the _stringApp_. - -```{r} -net.enr <- RCy3::commandsRun('string retrieve enrichment allNetSpecies=Homo sapiens') -RCy3::commandsRun('string show enrichment') -``` - -Visit the [scNetViz website](https://www.cgl.ucsf.edu/cytoscape/scNetViz/#networks) for more information. - - - - - - diff --git a/single-cell-analysis/Session_4/use_case_1.html b/single-cell-analysis/Session_4/use_case_1.html deleted file mode 100644 index 2119878..0000000 --- a/single-cell-analysis/Session_4/use_case_1.html +++ /dev/null @@ -1,522 +0,0 @@ - - - - -
- - - - - - - - - -This use case will demonstrate analyzing and visualizing single cell datasets from within Cytoscape to generate network views of clusters of differentiated genes per cell population. In order to control Cytoscape from R, we’ll need to install the RCy3 pacakge:
-if(!"RCy3" %in% installed.packages()){
- install.packages("BiocManager")
- BiocManager::install("RCy3")
-}
-library(RCy3)
-## Warning: package 'RCy3' was built under R version 4.0.3
-The whole point of RCy3 is to connect with Cytoscape, so you will need to install and launch Cytoscape:
-cytoscapePing()
-## You are connected to Cytoscape!
-For this use case, you’ll also need two Cytoscape apps: * scNetViz app to work with single cell datasets in Cytoscape * stringApp to perform enrichment analysis using the STRING webservice
-installApp('scNetViz')
-## App scNetViz installed
-installApp('STRINGapp')
-## App STRINGapp installed
-In this example, we will browse a single cell expression atlas, explore a particular dataset, perform differential expression analysis based on provided categories, generate networks from the top genes from each category, and functionally characterize and visualize the networks.
-Use the accession number of single-cell experiment to pull data from the Single-Cell Experiment Atlas of EMBL-EBI.
-#Load data with Accession number E-GEOD-81383
-RCy3::commandsRun('scnetviz load gxa experiment accession=E-GEOD-81383')
-This loads the data and opens an experiment table with three tabs, named TPM, Categories, and DiffExp.
-Run differential expression analysis for the row with true value of sel.K (default).
RCy3::commandsRun('scnetviz calculate diffexp accession=E-GEOD-81383')
-Fetch protein-protein interaction networks from the STRING database.
-RCy3::commandsRun('scnetviz create network accession=E-GEOD-81383')
-Check the networks available in the current Cytoscape session.
-RCy3::commandsRun('network list')
-## [1] "Cluster (k = 4) Network" "Cluster 2"
-## [3] "Cluster 3" "Cluster 1"
-## [5] "Cluster 4"
-Perform functional enrichment analysis for the network selected in the current session using the stringApp.
-net.enr <- RCy3::commandsRun('string retrieve enrichment allNetSpecies=Homo sapiens')
-RCy3::commandsRun('string show enrichment')
-Visit the scNetViz website for more information.
-