Skip to content

An application to navigate and understand amplitude change categories for circadian rhythms with gene ontologies, using ECHO output.

Notifications You must be signed in to change notification settings

delosh653/ENCORE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 

Repository files navigation

Welcome to ENCORE!

This is the second step in the PAICE (Pipeline for Amplitude Integration of Circadian Exploration) Suite! This suite of tools provides high-throughput applications for circadian, ultradian, and infradian rhythms. The first step, ECHO, can be found here, and must be run before using this application. The third step, MOSAIC, can be found here.

README Outline

  • Overview
  • Use and First-Time Set-Up Instructions
  • ENCORE Features
  • Minimum Version Information
  • Contact Information and Bug Reporting
  • FAQ

Overview

ENCORE (ECHO Native Circadian Ontological Rhythmicity Explorer) is an R-powered Shiny application to navigate and understand the gene function of amplitude change categories for circadian rhythms, using ECHO output.

To read more about this work and cite us, please see ENCORE: A Visualization Tool for Insight into Circadian Omics by H. De los Santos, et al. (2019)

All images created by ENCORE using data from Harmonics of Circadian Gene Transcription in Mammals by M.E.Hughes, et al. (2009).

Use and First-Time Set-Up Instructions

Thank you for downloading ENCORE (ECHO Native Circadian Ontological Rhythmic Explorer)! ENCORE is an app designed to help you navigate and understand the function of amplitude change categories for circadian rhythms with gene ontologies. This guide will lead you in first time set-up and use. Pictures have been provided for ease of use, using Windows 10, in the files ENCORE_README.docx, found above. A double asterisk indicates the step has an explanation below, and a tilde indicates the step is first-time set up only.

Steps:

  1. ** ~ Download Firefox or Chrome and make it your default browser.

  2. ~ Download the protein links for your organism from STRING. The organisms that are available in this application are:

Organism Taxonomy Number
Mus musculus 10090
Homo sapiens 9606
Neurospora crassa 5141
Drosophila melanogaster 7227
Anopheles gambiae 7165
Saccharomyces cerevisiae 4932
Escherichia coli K12 substr MG1655 511145

Enter your organism’s name in the ‘choose an organism’ box and click update. You should then see the taxonomy number preceding the file names. Download the file called TAX#.protein.links.vVERS#.txt.gz. At the time of this README, the VERS# (version number) is 11.0. If you download a different version number (such as 10.5), you will need to change the encore_app.R file slightly, which is addressed in step 8 below.

  1. ~ Once you’ve downloaded that file, extract the text file. (If using Windows, you may need to download an alternative unzip program that can unzip .gz files, such as 7Zip.) Place that text file, unaltered, in the ‘links’ folder of the ‘ENCORE Shiny App’ Folder.

  2. ~ Download R, if you do not already have it.

  3. ~ Download RStudio, if you do not already have it (RStudio Desktop is sufficient).

  4. Plug in your computer, if it is not plugged in already, and open RStudio.

  5. ~ Copy and paste the following text into the console window (bottom left window of the RStudio Session), then press enter:

install.packages("rstudioapi")
install.packages("shiny")
install.packages("ggplot2")
install.packages("r2d3")
install.packages("data.table")
install.packages("jsonlite")
install.packages("stringr")
install.packages("igraph")

Copy each of the following lines in the console separately and press enter for each:

if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager")
BiocManager::install("STRINGdb")
BiocManager::install("AnnotationHub")
BiocManager::install("mygene")
BiocManager::install("topGO")
BiocManager::install("AnnotationDbi")
BiocManager::install("org.Ag.eg.db")
BiocManager::install("org.Dm.eg.db")
BiocManager::install("org.Hs.eg.db")
BiocManager::install("org.Mm.eg.db")
BiocManager::install("org.EcK12.eg.db")
BiocManager::install("org.Sc.sgd.db")

This will install these packages (a set of functions that this application uses) onto your computer. This may ask for your input, so just say no to the questions asked. If you run into errors saying “no,” just say yes instead. Note: this may take some time.

  1. Open encore_app.R, which should be included in the .zip file you downloaded and also contained this README. It should open in the top left window of your RStudio session.

If you downloaded a version of STRING that was NOT 11.0, make the following edit to the encore_app.R file. Under the data versions section (# data versions ----), you should see vers_string <- "11.0". Replace that 11.0 with your version, exactly as written in your filename that you downloaded from STRING (i.e. "TAX#.protein.links.v11.1.txt.gz" would result in putting 11.1 in the code).

  1. In the top right corner of the encore_app.R window, you should see the button, “Run App”. Click on the small downwards arrow next to it and choose “Run External”.

  2. Now click “Run App”. This should open the ENCORE application in your now default browser window (either Firefox or Chrome). The picture in the READMEs is a representation in Firefox.

  3. Start by choosing the ‘Create ENCORE File’ section to calculate your ECHO output for ENCORE and download resulting file. ENCORE downloads appear in the ‘downloads’ folder of the ENCORE Shiny App folder that you’ve downloaded.

  4. Once you’ve downloaded the ENCORE file, upload it to the ‘Explore’ section and proceed, following the navigation instructions.

  5. Have fun!

** Why do I have to install either Firefox or Chrome, you ask? Why not Internet Explorer, or some other browser? Well, it is known there are problems downloading files when viewing shiny apps in Internet Explorer, as well as some aspects of d3 not working, so we definitely want to avoid that. However, I have not tested this app in browsers like Microsoft Edge, Safari, etc. If you can verify that these work, please let me know at delosh@rpi.edu.

ENCORE Features

ENCORE's interface is divided into two sections: Explore and Create Encore File.

Within the Create ENCORE File tab, you can upload your ECHO visualization file results (.csv) and enter ontology enrichment information, such as the organism, gene ID type, desired significance level and adjustment, and period range restrictions. Note that this step takes some time. You can then download your results as an .RData file, which appears in the 'downloads' folder of the ENCORE Shiny App folder.

In the Explore tab, simply upload the ENCORE .RData file from your results and select desired ontologies and categories. You can then see a sankey, or flow, diagram showing the path to a selected ontological term for a specific AC category. Possible paths from the ontological type to the selected term flow from left to right. Not significant terms are grey and significant terms are colored. To jump to a specific ontological category's children, click its bar node. Hover and click on bars and links for more information.

You can then explore a layered bar graph in the Ontology Explorer, representing the ontologies significantly enriched for the categories you chose. You can then hover and click for more information on enirchments and ontological terms.

Once you've selected a GO Term in the Ontology Explorer, you can explore protein-protein ineractions between different genes belonging to that category, as well as their mean-centered, normalized heat maps of gene expression sorted by phase. We can also find more information about these connections through different hover and click interactions.

When you click on an ontological term in the Ontology Explorer or a gene in the Group Comparison, information about the term appears here. If you click on a gene from the Group Comparison Tool, the expression with summary information will appear on the left, with a link connecting to gene information on above. Genes appearing in the chord diagram also appear here, along with their amplitude change coefficient categories and hours shifted (phase) values.

Note: further descriptions and instructions appear within the app.

Minimum Version Information

Minimum versions for packages and sytems used in ECHO are the following:

Package Minimum Version
R >= 3.5.1
AnnotationHub >= 2.14.2
topGO >= 2.34.0
STRINGdb >= 1.22.0
r2d3 >= 0.2.3
data.table >= 1.11.8
jsonlite >= 1.6
igraph >= 1.2.2
stringr >= 1.3.1
mygene >= 1.16.2
data.table >= 1.11.8
AnnotationDbi >= 1.44.0
org.Ag.eg.db >= 3.7.0
org.Dm.eg.db >= 3.7.0
org.Hs.eg.db >= 3.7.0
org.Mm.eg.db >= 3.7.0
org.EcK12.eg.db >= 3.7.0
org.Sc.sgd.db >= 3.7.0
DBI >= 1.0.0
shiny >= 1.3.2
ggplot2 >= 3.1.0

Contact Information and Bug Reporting

As you may have noticed, this is still in beta testing! Therefore, we would love to hear your feedback on the program. For general feedback, email hurlej2@rpi.edu with the subject line "ENCORE Feedback".

If you run into any errors, please email hurlej2@rpi.edu with the following (subject line: "ENCORE Error"):

  • a short desciption of your problem
  • ENCORE version number
  • your ENCORE file
    • Feel free to compress, as it is a large file. If it's too large after compression, simply send the ECHO .RData file and your exact inputs to get the ENCORE file.
  • your exact settings and click path (this appears in the top right of any image)
  • your exact error from the console window (a screenshot will do)

However, please read the FAQ below before sending error reports.

Contact: Jennifer Hurley / email: hurlej2@rpi.edu / Rensselaer Polytechnic Institute

FAQ

Q: My dataset isn't working for some reason and I'm not using the latest ENCORE version! Why?

A: Please update to the current ENCORE version (you can see this at the top of the github repository by checking out what the latest commit was), since this may have been corrected in an update. If this problem persists, feel free to send another email!


Q: I was running ENCORE, and it suddenly went grey! What happened?

A: There was an error, the cause of which can be found in the console. Check through the FAQ to see if it has been addressed, or if it's an obvious error (such as not loading any data).


Q: I get the following error (or similar) when I try to view the Gene/Term Explorer part of ENCORE:

DataTables warning: table id=DataTables_Table_0 - Requested unknown parameter '8' for row 0.
  For more information about this error, please see http://datatables.net/tn/4

A: This is a bug with Data Tables in Shiny 1.4. To check your version of Shiny, enter the following in the console:

packageVersion("shiny")

This should give you the Shiny version. If you have version 1.4, a quick fix is the following:

  1. Open ENCORE's encore_app.R file in RStudio.
  2. Enter install.packages("DT") in the console, which will install the DT package.
  3. Add library(DT) at the top of the encore_app.R script, on its own line.
  4. Press ctrl/cmd+F, which will open the find and replace tool at the top of the script.
  5. In the left box, which is the "find" box, enter dataTableOutput. In the right box, which is the "replace" box, enter DT::dataTableOutput. Then click the rightmost button, which says All.
  6. After you have done step 3, in the left box, which is the "find" box, enter renderDataTable. In the right box, which is the "replace" box, enter DT::renderDataTable. Then click the rightmost button, which says All.
  7. Press ctrl/cmd+S, which saves the encore_app.R file.

After you've completed all these steps, the problem should be fixed when you run it again!

About

An application to navigate and understand amplitude change categories for circadian rhythms with gene ontologies, using ECHO output.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published