Skip to content

Commit

Permalink
finished updating biology_specific_features
Browse files Browse the repository at this point in the history
  • Loading branch information
cornhundred committed May 3, 2017
1 parent 3aec6ea commit 390a312
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 12 deletions.
Binary file modified docs/_build_html/.doctrees/biology_specific_features.doctree
Binary file not shown.
Binary file modified docs/_build_html/.doctrees/environment.pickle
Binary file not shown.
14 changes: 10 additions & 4 deletions docs/_build_html/_sources/biology_specific_features.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,11 @@ When a user visualizes a matrix with genes as rows, Clustergrammer automatically

**Enrichrgram**

Enrichrgram enables users to find biological information specific to their genes of interest (using `Enrichr`_) and import this directly into the visualization as row categories (see screenshot below). Enrichrgram can be run on the front-end or back-end (using the :ref:`clustergrammer_py_api` to pre-calculate Enrichrgram results). This feature enables enrichment analysis to be performed within the visualization itself by both the original author of the visualization and anyone viewing the visualization.
Enrichrgram enables users to find biological information specific to their genes of interest (using `Enrichr`_) and import this information directly into the visualization as row categories (see screenshot below). Enrichrgram can be run on the front- or back-end (using the :ref:`clustergrammer_py_api` to pre-calculate results). This feature enables enrichment analysis to be performed within the visualization itself by both the original author of the visualization and anyone else viewing the visualization.

To use Enrichrgram on the front-end simply click the Enrichr-logo at the top-left of the heatmap to bring up a list of libraries from Enrichr, then click on a library to obtain enriched terms for your genes of interest (see screenshot below). For instance, clicking on 'ChEA 2016' will enrich for up-stream transcription factors. The enriched terms are shown as row categories, which enables users to see which genes are associated with each term. The row-category titles give the enriched term name, and the red-bars represent the significance of the enrichment (see `Enrichr combined score`_). Users can run enrichment analysis on specific clusters of genes by filtering the matrix to only show only their genes of interest: e.g. use the dendrogram Crop buttons or Brush-Crop buttons to select a subset of genes for analysis.

To pre-calculate enrichment results on the back-end run the ``enrichrgram`` method described in the :ref:`clustergrammer_py_api` before clustering. The Jupyter notebook `Clustergrammer_CCLE_Notebook.ipynb`_ demonstrates how to use the ``enrichrgram`` method to pre-calculate enrichment analysis results for your visualization.
**Enrichrgram Front-End**

Enrichrgram on the front-end is available to anyone viewing the visualization and can be used by simply clicking the red DNA-like Enrichr logo on the top left of the heatmap, which brings up a list of Enrichr libraries to choose from. To perform enrichment analysis choose a library and Enrichrgram will return enriched terms from this library that are specifically associated with your list of genes (P-value bars indicate the degree of specificity). For instance, clicking on 'ChEA 2016' will calculate enrichment for up-stream transcription factors. The enriched terms are shown as row categories, which enables users to see which genes are associated with each term. Row-category titles show the enriched term and the red-bars represent the significance of the enrichment (see `Enrichr combined score`_). Users can run enrichment analysis on specific clusters of genes by filtering the matrix to only show only their genes of interest: e.g. use the Dendrogram Crop buttons (see :ref:`interactive_dendrogram`) or Brush-Crop button (see :ref:`crop`) to select a subset of genes for analysis.

.. figure:: _static/enrichrgram_results.png
:width: 900px
Expand All @@ -53,6 +52,13 @@ To pre-calculate enrichment results on the back-end run the ``enrichrgram`` meth

Users can perform enrichment analysis to find biological information specific to their genes (e.g. a cluster of genes). Users can select from several enrichment libraries, and the top 10 enriched terms will be shown as rows categories. The combined scores for the enriched terms will be shown as red bars behind the row category titles.

Note that Enrichrgram results run on the front-end are not permanent and will be lost after refreshing the page, but the matrix with enriched terms can be saved by downloading the matrix using the :ref:`download` button. Enrichment results can be permanently added to the visualization from the back-end using the ``enrichgram`` method described below.


**Enrichrgram Back-End**

To permanently add pre-calculated enrichment results to a visualization run the ``enrichrgram`` method described in the :ref:`clustergrammer_py_api` before clustering. The Jupyter notebook `Clustergrammer_CCLE_Notebook.ipynb`_ demonstrates how to use the ``enrichrgram`` method to pre-calculate enrichment analysis results for a visualization.

The `Enrichrgram.js`_ library provides this functionality on the front-end and works with the :ref:`clustergrammer_js` API to depict enriched terms and their associated genes as row categories. The update-row-category functionality can be extended by developers for other domain-specific problems.

.. _`Clustergrammer_CCLE_Notebook.ipynb`: http://nbviewer.jupyter.org/github/MaayanLab/CCLE_Clustergrammer/blob/master/notebooks/Clustergrammer_CCLE_Notebook.ipynb
Expand Down
9 changes: 6 additions & 3 deletions docs/_build_html/biology_specific_features.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,16 @@ <h2>Enrichment Analysis<a class="headerlink" href="#enrichment-analysis" title="
<p class="caption"><span class="caption-text">Clicking a row dendrogram cluster opens a modal window with cluster information, row names, and a &#8216;Send genes to Enrichr&#8217; link that allows users to export their gene list (e.g. cluster of row-genes) to Enrichr.</span></p>
</div>
<p id="enrichrgram"><strong>Enrichrgram</strong></p>
<p>Enrichrgram enables users to find biological information specific to their genes of interest (using <a class="reference external" href="http://amp.pharm.mssm.edu/Enrichr/">Enrichr</a>) and import this directly into the visualization as row categories (see screenshot below). Enrichrgram can be run on the front-end or back-end (using the <a class="reference internal" href="clustergrammer_py.html#clustergrammer-py-api"><span class="std std-ref">Clustergrammer-PY API</span></a> to pre-calculate Enrichrgram results). This feature enables enrichment analysis to be performed within the visualization itself by both the original author of the visualization and anyone viewing the visualization.</p>
<p>To use Enrichrgram on the front-end simply click the Enrichr-logo at the top-left of the heatmap to bring up a list of libraries from Enrichr, then click on a library to obtain enriched terms for your genes of interest (see screenshot below). For instance, clicking on &#8216;ChEA 2016&#8217; will enrich for up-stream transcription factors. The enriched terms are shown as row categories, which enables users to see which genes are associated with each term. The row-category titles give the enriched term name, and the red-bars represent the significance of the enrichment (see <a class="reference external" href="http://amp.pharm.mssm.edu/Enrichr/help#basics">Enrichr combined score</a>). Users can run enrichment analysis on specific clusters of genes by filtering the matrix to only show only their genes of interest: e.g. use the dendrogram Crop buttons or Brush-Crop buttons to select a subset of genes for analysis.</p>
<p>To pre-calculate enrichment results on the back-end run the <code class="docutils literal"><span class="pre">enrichrgram</span></code> method described in the <a class="reference internal" href="clustergrammer_py.html#clustergrammer-py-api"><span class="std std-ref">Clustergrammer-PY API</span></a> before clustering. The Jupyter notebook <a class="reference external" href="http://nbviewer.jupyter.org/github/MaayanLab/CCLE_Clustergrammer/blob/master/notebooks/Clustergrammer_CCLE_Notebook.ipynb">Clustergrammer_CCLE_Notebook.ipynb</a> demonstrates how to use the <code class="docutils literal"><span class="pre">enrichrgram</span></code> method to pre-calculate enrichment analysis results for your visualization.</p>
<p>Enrichrgram enables users to find biological information specific to their genes of interest (using <a class="reference external" href="http://amp.pharm.mssm.edu/Enrichr/">Enrichr</a>) and import this information directly into the visualization as row categories (see screenshot below). Enrichrgram can be run on the front- or back-end (using the <a class="reference internal" href="clustergrammer_py.html#clustergrammer-py-api"><span class="std std-ref">Clustergrammer-PY API</span></a> to pre-calculate results). This feature enables enrichment analysis to be performed within the visualization itself by both the original author of the visualization and anyone else viewing the visualization.</p>
<p><strong>Enrichrgram Front-End</strong></p>
<p>Enrichrgram on the front-end is available to anyone viewing the visualization and can be used by simply clicking the red DNA-like Enrichr logo on the top left of the heatmap, which brings up a list of Enrichr libraries to choose from. To perform enrichment analysis choose a library and Enrichrgram will return enriched terms from this library that are specifically associated with your list of genes (P-value bars indicate the degree of specificity). For instance, clicking on &#8216;ChEA 2016&#8217; will calculate enrichment for up-stream transcription factors. The enriched terms are shown as row categories, which enables users to see which genes are associated with each term. Row-category titles show the enriched term and the red-bars represent the significance of the enrichment (see <a class="reference external" href="http://amp.pharm.mssm.edu/Enrichr/help#basics">Enrichr combined score</a>). Users can run enrichment analysis on specific clusters of genes by filtering the matrix to only show only their genes of interest: e.g. use the Dendrogram Crop buttons (see <a class="reference internal" href="interacting_with_viz.html#interactive-dendrogram"><span class="std std-ref">Interactive Dendrogram</span></a>) or Brush-Crop button (see <a class="reference internal" href="interacting_with_viz.html#crop"><span class="std std-ref">Cropping</span></a>) to select a subset of genes for analysis.</p>
<div class="figure align-left" id="id4">
<a class="reference internal image-reference" href="_images/enrichrgram_results.png"><img alt="Enrichrgram Menu" src="_images/enrichrgram_results.png" style="width: 900px;" /></a>
<p class="caption"><span class="caption-text">Users can perform enrichment analysis to find biological information specific to their genes (e.g. a cluster of genes). Users can select from several enrichment libraries, and the top 10 enriched terms will be shown as rows categories. The combined scores for the enriched terms will be shown as red bars behind the row category titles.</span></p>
</div>
<p>Note that Enrichrgram results run on the front-end are not permanent and will be lost after refreshing the page, but the matrix with enriched terms can be saved by downloading the matrix using the <a class="reference internal" href="interacting_with_viz.html#download"><span class="std std-ref">Download Icon</span></a> button. Enrichment results can be permanently added to the visualization from the back-end using the <code class="docutils literal"><span class="pre">enrichgram</span></code> method described below.</p>
<p><strong>Enrichrgram Back-End</strong></p>
<p>To permanently add pre-calculated enrichment results to a visualization run the <code class="docutils literal"><span class="pre">enrichrgram</span></code> method described in the <a class="reference internal" href="clustergrammer_py.html#clustergrammer-py-api"><span class="std std-ref">Clustergrammer-PY API</span></a> before clustering. The Jupyter notebook <a class="reference external" href="http://nbviewer.jupyter.org/github/MaayanLab/CCLE_Clustergrammer/blob/master/notebooks/Clustergrammer_CCLE_Notebook.ipynb">Clustergrammer_CCLE_Notebook.ipynb</a> demonstrates how to use the <code class="docutils literal"><span class="pre">enrichrgram</span></code> method to pre-calculate enrichment analysis results for a visualization.</p>
<p>The <a class="reference external" href="https://github.com/MaayanLab/clustergrammer/blob/master/js/Enrichrgram.js">Enrichrgram.js</a> library provides this functionality on the front-end and works with the <a class="reference internal" href="clustergrammer_js.html#clustergrammer-js"><span class="std std-ref">Clustergrammer-JS</span></a> API to depict enriched terms and their associated genes as row categories. The update-row-category functionality can be extended by developers for other domain-specific problems.</p>
</div>
</div>
Expand Down

0 comments on commit 390a312

Please sign in to comment.