Module 4 Lab: ReactomeFI
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. This means that you are able to copy, share and modify the work, as long as the result is distributed under the same license.
By Veronique Voisin, Chaitra Sarathy and Ruth Isserlin
Goal of this practical lab
Aim: This practical lab will provide you with an opportunity to perform pathway and network analysis using the Reactome Functional Interaction (FI) network and the ReactomeFIViz Cytoscape app.
Goal: Analyze gene lists to identify biology that contributes to cancer.
Data: download the following files on your computer before starting the practical lab.
Right click on link below and select “Save Link As…”.
We recommend saving all these files in a personal project data folder. We also recommend creating an additional result data folder to save the files generated while performing the protocol.
Exercise 1: Use the Reactome Functional Interaction (FI) Network
Objectives:
The objective of this exercise is to create a Reactome Functional Interaction (FI) network using a pan-cancer gene list.
In this exercise, we create a network using all genes in our list. In the network that we are creating, each gene is a node and all genes known to interact or are predicted to interact with each other are connected.
For this lab, we will use a set of genes found to have frequent somatic single nucleotide variations (SNVs) identified in TCGA exome sequencing data of 3,200 tumors from 12 different cancer types. The MuSiC cancer driver mutation detection software was used to find 127 cancer driver genes that displayed higher than expected mutation frequencies in cancer samples (Pan-cancer tab from Supplementary Table 4 in Kandoth C. et al..
Interestingly, this network might show us that although these genes were associated with different cancers, they might be biologically connected and might function in common biological pathways and protein complexes and represent hallmarks of cancer.
Data:
Right click on link below and select “Save Link As…”.
Place it in the corresponding module directory of your CBW work directory.
Download:
Steps:
- Create the network:
- Open up Cytoscape.
- Go to Apps –> Reactome FI –> Gene Set/Mutational Analysis
- Choose “2024 (Latest)” Version.
- Upload/Browse Pancancer_genelist.txt file. i. Select Gene set
- Select Fetch FI annotations.
- Select Show genes not linked to other
- Click OK.
- Open up Cytoscape.
- Resulting network:
Question 1: Describe the size and composition of the network?
The total number of genes in the network is 127.
103 of these genes are connected to each other by functional interactions. You can get this information by selecting all genes that you see connected to each others.
The total number of edges or interactions is 473.
The genes that are interacting together might work together in some sort of protein complex in the cells.
The FI network was constructed by merging interactions extracted from human curated pathways from Reactome with interactions predicted using a machine learning approach. The non curated sources of information include:
- protein-protein interactions,
- gene co-expression,
- protein domain interaction,
- Gene Ontology (GO) annotations
- text-mined protein interactions.
Solid edge between 2 nodes are interaction from curated pathways and dashed line are predicted interaction. (https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2898064/).
Question 2: After clustering, how many modules are there?
ReactomeFI has a clustering option which groups genes that are more connected to each other into modules.
- Cluster the network:
- Right-click on a blank space of the network
- select ReactomeFI –> Cluster FI Network.
Nodes are now colored by modules.
- Look at the table Network Module Browser to find out the number of modules.It is located in the Table Panel located below the network.
- Click on each module to highlight each genes in the module.
The connected network has been divided into 6 modules. Module 0 contains the most genes (32).
The MCL clustering algorithm is used to cluster the network and it is based on the number of interaction (edges) between the nodes.
Redo the layout for clarity:
Go to Cytoscape menu bar,
select Layout –> yFiles Organic Layout.
- Explore the resulting network.
Can you recreate the below image using one of the Cytoscape layout options?
Query information about the interaction between 2 genes:
- Click on a solid line.
You might need to zoom in on the network in order to select an individual edge.
- Once the edge is highlighted in red, right click on it and select ReactomeFI –> Query FI Source.
QueryFI Source will open a window with a list of the set of pathways that this interaction is found in.
- Click on a dashed line.
- Once it is highlighted in red,
- right click on it and select ReactomeFI –> Query FI Source.
The Query FI source will include a list of prediction sources as well as the overall score associated with this prediction.
The FI score can be used to filter interactions and keep the interactions with the highest scores.
- To get an information about a gene.
- Right-click on a gene
- select ReactomeFI –> Query Gene Card
- This will open a web page containing all the information about the gene that is contained in the gene cards database.
- You can also select Fetch FI to get information about this gene in the ReactomeFI network
- You can also select Fetch Cancer Gene Index to get information about this gene in the Cancer gene index
- You can also select Query Cosmic to get information about this gene in Cosmic
Question 3: What are the most significant pathways in each module?
Pathway analysis can be performed on the whole set of genes from the network. It can also be performed individually on each module.
right-click, Analyze Network Functions –> Pathway Enrichment, as opposed to,
right-click, Analyze Module Functions –> Pathway Enrichment.
Pathway enrichment of Modules
The original network has been divided into smaller modules of interacting proteins at the clustering step. Module pathway enrichment can be used to label each network modules.
i. Right-click on a blank space of the network window
i. Select **Reactome FI** --> **Analyze Module Functions** --> **Pathway enrichment**
- A Choose Module Size window appears.
- This parameter enables the user to select a minimum number of genes required in the module in order to include it in the pathway analysis.
- Set the module size as 4.
- Once the pathway analysis has finished running, a Pathways in Modules table appears in the Table Panel located below the network. Pathways are ordered by best FDR values (closer to 0) for each module.
- Click on some of the pathways for each module. It will highlight the genes in our network that are part the selected pathway.
- For example,
- Select RAF/MAP kinase cascade (R).
- It is one of the most significant pathways of module 1.
- There are 14 genes in this pathway that are also in module 1.
- Module 1 has a total of 28 genes. (The number of genes in each module can be found in the Network Module Browser tab)
- The associated FDR value is 5.773e-15 which is very close to 0 and it means that this overlap of 14 genes isn’t likely to be obtained by chance only.
Try it out yourselves:
- try GO Biological Process enrichment on modules:
- Reactome FI –> Analyze Module Functions –> GO Biological Process
- try pathway or GO Biological Process enrichment on the full network:
- Reactome FI –> Analyze Network Functions –> GO Biological Process
- Reactome FI –> Analyze Network Functions –> Pathway Enrichment
It is possible to undock tables for better clarity using the pin icon located at the top right corner of the Table Panel.
Set the size of the nodes proportional to the mutation frequencies in each cancer
Our gene list contains the genes with high frequency in several cancers. Table PanCancer_drivers_genelist_with_mutation_frequency.txt contains the mutation frequency of these genes in 10 cancer types. We are going to import this table into Cytoscape and set the size of the nodes using these column values.
- In the Cytoscape menu bar,
- Select Import –> Table from File…
- Browse for your file and click on open.
- In the window Import Columns From Table, make sure that Import Data as: is set to Node Table Columns.
- Click OK.
Now that the table is imported, we can use the values in the table columns as ‘Properties’ to set a style or to filter the network.
We are going to set the size of the nodes.
Look for the Style tab in the Control Panel located at the left of the Cytoscape window. Select.
Click on the down arrow beside Properties and select Size on the list.
Select the Size field and expand it using the down arrow.
In the Column field, click on –select value– and choose BLCA Freq.
In the Mapping Type, click on –select value– and choose Continuous Mapping.
Click on the diagram
Set the first pivot Handle Position to 30 and the second pivot Handle Position to 100. To set the pivot click on the arrow you would like to set and then adjust the value specified next to Node Size. Make sure to press enter once you have updated the value in order for it to be registered.
Click OK
Now the biggest nodes correspond to genes with highest mutation frequency in the BCLA cancer (Bladder cancer).
You can change the column value to other cancer types and observe the differences.
Play around with the styles: change transparency and colors
Here are the steps if you need to change the colors of the module to create a figure for publication.
In Style, go to the ** Transparency** field and replace 100 by 200. Try different numbers.
If some of the colors are too dark, it is possible to modify the cluster colour by selecting the field Fill Color in properties in the Styles tab:
double-click on a color.
choose a new one. (This will need to be done for each colour you want to change.)
The resulting network
Create a pie chart
As we have the mutation frequencies for several cancer types, it would be useful to be able to compare all cancer frequencies at the same time in the same network. It is possible to do this by plotting a pie chart for each gene (node) with each pie slice representing the mutation frequency for each cancer.
- Here are the steps to do it:
In Style, click on the down arrow close to Properties and select Paint, –> Custom Paint1 –> Image/Chart 1.
In Style, locate the new Image/Chart 1 field and click on the fist box.
A Graphics windows pops up. Click on the “Charts” tab.
In Chart, select the piechart icon.
In Available Columns, select the columns that you want to include in your pie chart (here 8 cancer types) and click on the arrow to move them over to the Selected Columns.
They are now placed in the Selected Columns window. Click on Apply.
Expanding Customize will open a tab that shows the color legend for the pie chart. All colours of the pie chart are customizable.
Notice in the screenshot below we changed node shape to be square so that we can still see the module the gene belongs to as well as the cancer frequencies in the pie chart. Can you replicate this?
Create a subnetwork
Now that the network is clustered in modules and related pathways, we want to create a subnetwork to highlight connections that we found interesting. For this exercise, we want to create a network of the genes involved in the Gastric cancer (K) pathway.
Here are the steps to follow:
- In the table panel, locate the Pathways in Network table.
In order to generate the pathway network table, right-click on a blank space, Reactome FI –> Analyze Network Functions –> Pathway Enrichment.
(hint: this was one of the steps that you had to try yourselves, )
- Select Gastric Cancer (K) from the list of pathways.It will highlight the genes in this pathway in yellow.
It should be the top enriched pathway. If you can’t see it trying changing the sorting of the table by clicking on the column headers – specifically the FDR column
- Above the network find and click on the New Network from Selection icon and select From Selected Nodes, All Edges.
A new network containing only the selected nodes is now created.
Important.Copy Style before going to the next step. It is good practice to copy the style of a figure as it might be reset by some Cytoscape functions.
- Go to Style
- Click on the 3 bars
- Select ‘Create New Style’ …
- Name your style
- Click ‘OK’.
If you loose your style, go back to “Style” , click on the down arrow and click on your style label.
Fetch Cancer drugs on the created subnetwork
- Working with the newly created gastric cancer enriched network.
- Right-click on a blank space and select Reactome FI, Overlay Drugs, Fetch Cancer Drugs.
- The numerous drugs known to target the genes in this subnetwork are now added as green diamond shaped nodes.
If you lost your pie chart coloring at that step, go to Style and select the style that you have saved before fetching the drugs.
- Here is the network after redoing the layout for clarity (Layout –> YFiles Organic Layout)
Save the network as an image for publication
As we have finalized our network analysis, we would like to export the network as an image.
In the Cytoscape menu, select File, –> Export,–> Network to Image.
Browse to the directory where you want to save the image, give it a name and click on OK.
In addition to export an image of your network, save your session regularly.
Exercise 2a: Explore Reactome Pathways
Objectives: The objective of this exercise is to navigate the Reactome pathways using the Cytoscape ReactomeFI app.
Steps:
Open up Cytoscape.
Go to Apps >Reactome FI>Reactome Pathways. Once the app is opened, the list of pathways contained in the Reactome database are listed on the left window.
Pathways are available for Homo sapiens and Mus Musculus. Make sure that Homo sapiens is selected.
The pathways are organized into main categories. Clicking on the left arrow will expand that category and display all its sub-categories/pathways.
- Find and expand the Transport of small molecules event branch.
- In the expanded menu,find and expand O2/CO2 exchange in erythrocytes.
- Select Erythrocyte take up carbon dioxide and release oxygen.
- Right-click on the highlighted pathway and select Show Diagram.
- Explore the pathway diagram.
- Zoom in and out.
- Move nodes around.
- Change color of a branch
- select a line,
- right click,
- select highlight,
- choose color.
- Explore individual molecules and reactions.
- Right click on a line or a compound.
- Select View Reactome Source in right click context menu.
- This displays information about the biochemical reaction or molecule selected including the input and output molecules and associated reference papers.
- Save the reactome pathway diagram as pdf:
- Right-click on the diagram and select Export Diagram
Pathway diagram
- biochemical view of pathways with cause and effect of each interaction captured.
- shows the flow and structure of pathway.
- represents different events and states of the same molecules.
- includes information on genes, proteins, metabolic pathways, molcular interactions, biochemical reactions.
Network
-
represents relationships between entities. Entities can be genes,
RNA, proteins or anything defined by the creator.
- enables visualization of multiple data types together.
- No context or dynamics. Simply shows the connectivity between nodes.
- Transform pathway diagram into a network and back to a diagram.
- Right-click on a blank space in the diagram
- select Convert to FI Network.
Transforming the pathway diagram into a network has the advantage that we can now use all the features of Cytoscape.
Notice when viewing the pathway diagram you have to use the zoom bar at the bottom of the pathway diagram as opposed to the zoom buttons in the top menu bar in Cytoscape. Also. when using the pathway diagram you can not use any of the builtin layouts that come with Cytoscape. Because Cytoscape is a network analysis software it has been optimized for networks. In the ReactomeFI app they recreate the pathway diagram by manually drawing an interactive picture of it. You can still move the nodes and edges manually but employing any of the built in layouts and features would potentially ruin the picture.
You might have to redo the layout.
Note that only genes (and not the metabolites) are included in this network.
The Reactome pathway diagram demonstrates how the oxygenated form of hemoglobin A HBA1 undergoes two chemical reactions in the presence of CO2. These reactions cause HBA to lose its affinity for oxygen.
Additionally, this pathway diagram demonstrates how, in erythrocytes, CYB5Rs participates in the reduction of methemoglobin (MetHb) to hemoglobin A HBA1. The participating genes are then HBA, HBB and Cyb5R genes and will be displayed in the network.
- Convert the network back to a pathway diagram.
- Right-click on a blank space of the network.
- select ReactomeFI
- then Convert to Diagram.
Step2
- Open the diagram from the Reactome website:
- Locate the menu of pathways in the left hand window
- right click on Erythrocytes take up carbon dioxide and release oxygen.
- Select View in Reactome.
- This will open a new page in your web browser with detailing information about the pathway on the Reactome website.
Step2 - redirect to Reactome in web browser
Some useful information is displayed in the web view including:
* a summary of the pathway and
* reference papers used to build the diagram.
The pathway can be exported as an image in a range of format choices including svg, png, pptx or pdf or as a recognized exchange format including BioPAX, SBML or SBGN.
Furthermore, it is linked to the reactome.org pathway browser that can be opened in a new window. (See link below the pathway diagram, “Click other image above or here to open this pathway in the Pathway Browser”) The Cytoscape ReactomeFI app is a replica of this web-based pathway browser.
Step1 - click on linkStep2 - Pathway browser in web browser.
Exercise 2b: Pathway enrichment analysis using a simple gene list
Objectives: The objective of this exercise is to perform a pathway-based analysis using a sample gene list as input.
Data:
For this lab, we will use a set of genes found to have frequent somatic single nucleotide variations (SNVs) identified in TCGA exome sequencing data of 3,200 tumors from 12 different cancer types. The MuSiC cancer driver mutation detection software was used to find 127 cancer driver genes that displayed higher than expected mutation frequencies in cancer samples (Pan-cancer tab from Supplementary Table 4 in Kandoth C. et al..
- Gene list: Pancancer_genelist.txt
Steps:
In Cytoscape, locate the menu bar, select File -> Close . (This will clear the previous session we created in 2A in order to start with a clean slate.)
Select Apps -> Reactome FI -> Reactome Pathways.
Locate the list of Reactome pathways in the left hand panel in the Reactome tab in the Control Panel.
Scroll down and find the Signal Transduction pathway in the event hierarchy and select it.
Right-click on the highlighted Signal Transduction name and select Analyze Pathway Enrichment .
- Browse and select the Pancancer_genelist.txt file ,click OK.
Question 1: What are the most significant biological pathways based on the FDR?
- Hint: Take a look at the list of significant pathways in the Reactome Pathway Enrichment tab of Table Panel.
Pathway enrichment results are displayed as a table labeled as “Reactome Pathway Enrichment” in the “Table Panel” at the bottom of the main Cytoscape window.
Answer to Question 1
The pathway with the most significant enrichment FDR is called Generic Transcription Pathway. This pathway contains 1250 genes of which 42 genes are also found in the Pan_Cancer gene list that we used as intput.
The statistical enrichment test pvalue associated with this pathway is close to 0 (7.43 E-11) and it means that this size of the overlap (42 genes) is not likely to be obtained by chance alone.
Reactome Pathway enrichment table contains -
- ReactomePathway - pathway name
- RatioOfProteinInPathway - this is not the ratio of our query to the size of the pathway. This is the ratio of proteins found in this pathway as compared to the total number of entities.
- NumberOfProteinPathway - total number of genes in the pathway
- ProteinFromGeneSet - number of genes from our input gene list that overlaps with this pathway
- P-value
- FDR
- HitGenes - genes from out input gene list that overlap with this pathway
The pathways that are the most enriched have a low FDR value.
You can click on any of the column labels in the Reactome Pathway Enrichment table to sort the table by that column.
- In the Reactome Pathway Enrichment table,
- select Transcriptional regulation by RUNX3.
- Right-click on the pathway
- select View in Diagram.
- select Transcriptional regulation by RUNX3.
To find this pathway more easily:
- click on the column title “ReactionPathway” to sort the table alphabetically by pathway name
- scroll down to the pathway Transcriptional regulation by RUNX3
- Explore the pathway diagram
- Zoom in and out to observe the diagram.
- Purple-coloured nodes reflect genes that are present in our input gene list (Pancancer_genelist.txt).
- Right-click on highlighted nodes to invoke additional features.
If the Reactome Pathway Enrichment Table is not visible anymore in the Table Panel.
- Go to Cytoscape menu bar, View.
- Uncheck and chek Show Table Panel.
If this doesn’t work it is possible the table panel is just too small to see. You can try expanding it so you can see it or pop it out of the window so that it is its own window. (For smaller laptop screens that might be easiest thing to do)
- Transform the diagram into a network:
- Right-click on a blank space of the diagram
- select Convert to FI Network.
Redo the layout if a clearer view is needed.
- Go to the Cytoscape menu bar
- select Layout, –> yFiles Organic Layout.
- Transform network back to a diagram:
- Right-click on a blank space
- select Reactome FI –> Convert to Diagram.
- Open Reactome Reacfoam:
- The Reacfoam view provides a holistic view of all (excluding disease) human pathways in the Reactome database.
- Go to the menu of pathways in the Control Panel (left window) and
- right-click on a blank space.
- Select Open Reactome Reacfoam.
Reactome Reacfoam will open in the default web browser.
The color gradient indicates which categories of pathways have a stronger enrichment in the gene list that we have provided with lighter yellow having more significant FDR values.
Exercise 2c: Pathway-based analysis using a rank gene list (GSEA)
Objectives:
ReactomeFIViz provides support to perform GSEA analysis for Reactome pathways using a rank file.
Data:
To perform the GSEA pathway enrichment analysis, you need to provide a tab-delimited text file containing two columns: the first for gene symbols (human only) and the second for gene scores.
The data used in this exercise is gene expression (transcriptomics) obtained from high-throughput RNA sequencing of Ovarian Serous Cystadenocarcinoma samples. This cohort was previously stratified into four distinct expression subtypes PMID:21720365 and a subset of the immunoreactive and mesenchymal subtypes are compared to demonstrate the GSEA workflow.
Data processing:
Gene expression from the TCGA Ovarian serous cystadenocarcinoma RNASeq V2 cohort was downloaded on 2015-05-22 from cBioPortal for Cancer Genomics. Differential expression for all genes between the mesenchymal and immunoreactive groups was estimated using edgeR.The R code used to generate the data and the rank file used in GSEA is included at the bottom of the document in the Additional information section.
Right click on link below and select “Save Link As…”.
Place it in the corresponding module directory of your CBW work directory.
This is the same data used in Module2 GSEA lab.
The first row is reserved for the column headers, and will not be imported for analysis.
Steps:
- Start with a fresh session:
- Go to the Cytocape menu bar and
- select File, –> Close Session.
- Open ReactomeFI app:
- Go to the menu bar Select Apps,–> Reactome FI,–> Reactome Pathways.The Reactome tab in the Control Panel on the left opens and the list of pathways is visible.
- Select Autophagy and right-click on a blank space. The option menu opens. Select Perform GSEA Analysis.
Why do I have to select Autophagy? Am I doing the GSEA Analysis just on this pathway?
This is just a little quirk in the ReactomeFI app. In order to see the context menu with all your options you need to have a pathway selected.
A Reactome GSEA Analysis window pops up.
- Browse and select MesenchymalvsImmunoreactive_edger_ranks.rnk.
The number of permutations is 100 by default. To achieve more precision, we set the permutations to 2000. It will take approximately 10 minutes to run.
For faster results during this practical lab, you may run it with 100 permutations. Keep in mind that this lower threshold will affect the NES, P-value and FDR values in your results.
- Once GSEA has finished, a Reactome GSEA Analysis tab appears in the Table Panel.
This table displays the list of pathways in increasing order from the lowest FDR values.
- Click on the Normalized enrichment score column title to order the pathways from Up (positive NES) to Down (negative NES).
The pathways that are up and with FDR less than 0.05 are enriched in genes up regulated in the mesenchymal type of ovarian cancer.
The pathways that are down (negative NES) with FDR values less than 0.05 are enriched in genes down regulated in the mesenchymal type of ovarian cancer. Therefore, these genes are specific to the immunoreactive type.
Interferon Signaling is the pathway that has the strongest enrichment (lowest NES value) in genes down-regulated in the mesenchymal type (or alternately, upregulated in the immunoreactive type).
Let’s visualize this in a pathway diagram to get details about the pathway.
i.Locate and select Interferon gamma signaling in the Reactome GSEA Analysis table.
- Right-click on the highlighted name
- select View in Diagram from the popup menu.
- Explore the diagram by zooming in and out.
- Look at the list of genes in the Gene scores and ranks table (click on some genes).
- Fetch cancer drug:
- right-click anywhere on diagram
- select Fetch cancer drug.
Automation ( for advanced users)
To facilitate adoption of this app in bioinformatics software pipeline and workflow development, a CyREST API for ReactomeFIViz was developed. CyREST is the technology that powers Cytoscape Automation, which enables you to create reproducible workflows executed entirely within Cytoscape or by external tools (e.g., Jupyter, R, GenomeSpace, etc) [https://apps.cytoscape.org/apps/cyrest]. You can find below a case to demonstrate the use of this API in a Jupiter Notebook (https://jupyter.org/).
Reference guide /bonus exercises:
Here is a link to the ReactomeFIVIz complete guide: https://reactome.org/tools/reactome-fiviz You can find more tips and bonus exercises.