Skip to content

Commit

Permalink
improved case studies
Browse files Browse the repository at this point in the history
  • Loading branch information
cornhundred committed Feb 21, 2017
1 parent 8c58963 commit db865e4
Show file tree
Hide file tree
Showing 49 changed files with 400 additions and 414 deletions.
Binary file modified clustergrammer_py/__init__.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/_build_html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: e22f7d2efb6cf8a09998f298823ed2eb
config: 6d951a9cf5925d085b5d376fd31212d6
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified docs/_build_html/.doctrees/app_integration.doctree
Binary file not shown.
Binary file modified docs/_build_html/.doctrees/biology_specific_features.doctree
Binary file not shown.
Binary file modified docs/_build_html/.doctrees/case_studies.doctree
Binary file not shown.
Binary file modified docs/_build_html/.doctrees/clustergrammer_js.doctree
Binary file not shown.
Binary file modified docs/_build_html/.doctrees/clustergrammer_py.doctree
Binary file not shown.
Binary file modified docs/_build_html/.doctrees/clustergrammer_web.doctree
Binary file not shown.
Binary file modified docs/_build_html/.doctrees/clustergrammer_widget.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/_build_html/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build_html/.doctrees/interacting_with_viz.doctree
Binary file not shown.
28 changes: 19 additions & 9 deletions docs/_build_html/_sources/case_studies.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,31 @@
.. _case_studies:

Case Studies
------------
Clustergrammer was built to visualize biological data but is applicable for visualizing high-dimensional data in general. Below are links to several example use cases for Clustergrammer:
Case Studies and Examples
-------------------------
Clustergrammer was built to visualize biological data but is generally applicable for visualizing high-dimensional data. Below are links to several example case studies and examples using Clustergrammer:

Cancer Cell Line Encyclopedia Gene Expression Data
==================================================
`CCLE Explorer`_
The Cancer Cell Line Encyclopedia (`CCLE`_) is a publically available project that characterized (e.g. genetic characterization) over one thousand cancer cell lines. We used Clustergrammer to re-analyze and visualize CCLE's gene expression data in the `CCLE Explorer`_. The CCLE Explorer allows users to explore the CCLE by tissue type and visualize the most commonly differentially expressed genes for each tissue type as an interactive heatmap.

Zika Virus RNA-seq Data Visualization
=====================================
`Zika Virus RNA-seq Data Visualization`_

- `Zika Virus RNA-seq Data Visualization`_
- `Single Cell RNA-seq Data Visualization`_
- `Iris flower dataset`_
- `MNIST Handwritten Digit Dataset`_
Single Cell RNA-seq Data Visualization
======================================
`Single Cell RNA-seq Data Visualization`_

Machine Learning Datasets
=========================

`Iris flower dataset`_

`MNIST Handwritten Digit Dataset`_

.. _`CCLE Explorer`: http://amp.pharm.mssm.edu/clustergrammer/CCLE/
.. _`Zika Virus RNA-seq Data Visualization`: http://nbviewer.jupyter.org/github/maayanlab/Zika-RNAseq-Pipeline/blob/master/Zika.ipynb
.. _`Iris flower dataset`: http://nbviewer.jupyter.org/github/MaayanLab/iris_clustergrammer_visualization/blob/master/Iris%20Dataset.ipynb
.. _`MNIST Handwritten Digit Dataset`: https://maayanlab.github.io/MNIST_heatmaps/
.. _`Single Cell RNA-seq Data Visualization`: http://nbviewer.jupyter.org/github/MaayanLab/single_cell_RNAseq_Visualization/blob/master/Single%20Cell%20RNAseq%20Visualization%20Example.ipynb
.. _`Single Cell RNA-seq Data Visualization`: http://nbviewer.jupyter.org/github/MaayanLab/single_cell_RNAseq_Visualization/blob/master/Single%20Cell%20RNAseq%20Visualization%20Example.ipynb
.. _`CCLE`: https://portals.broadinstitute.org/ccle/home
51 changes: 49 additions & 2 deletions docs/_build_html/_sources/clustergrammer_js.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,61 @@ Clustergrammer-JS API

Clustergrammer's attributes and functions are listed below:

.. js:attribute:: params

The Clustergrammer parameters object, which contains all the parameters necessary to generate the visualization.

.. js:function:: update_cats(row_data)

Update the visualization row categories.

:param row_data: The row category data that will be used to ...
:param row_data: Row category data.

.. js:function:: reset_cats()

Reset the row categories to their original state.

.. js:function:: resize_viz:

Call this function to resize the visualization to fit in its resized container (if the user has resized the container).

.. js:function:: d3_tip_custom

Generate a D3 tooltip for SVG elements.

.. js:function:: update_view(filter_type, inst_state)

Update the heatmap with a specified row filter 'view'.

:param filter_type: The available filter types sum or variance: e.g. N_row_sum, N_row_var

:param inst_state: The value of the row filter, e.g. 500

.. js:function:: filter_viz_using_names(names)

Update the visualization to show the row and column names specified in the names object.

:param names: Object with ``row`` and ``col`` attributes that specify the row and column names that will be visible after updating.

.. js:function:: filter_viz_using_names(nodes)

Update the visualization to show the row and column names specified in the nodes object.

:param names: Object with ``row`` and ``col`` attributes that specify the row and column nodes that will be visible after updating.

.. js:function:: zoom(pan_x, pan_y, zoom)

Zoom and pan into the visualization.

:param pan_x: Panning in the `x` direction

:param pan_y: Panning in the `y` direction

:param zoom: The zoom level applied to the visualization.

:param resize_viz: Call this function to resize the visualization to fit in its resized container (if the user has resized the container).
.. js:function:: export_matrix()

Save the current matrix (e.g. after cropping) as a tab-separated-file.


.. _visualization_json:
Expand Down
4 changes: 2 additions & 2 deletions docs/_build_html/_sources/interacting_with_viz.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

Interacting with the Visualization
----------------------------------
Data visualizations benefit enormously from user interaction that allow users to explore their data and interactively generate new views. Clustergrammer produces highly interactive heatmaps that enable users to intuitively explore and perform complex transformations on their data. Clustergrammer visualizations are built using the :ref:`clustergrammer_js` library and are consistent across the :ref:`clustergrammer_web` and the :ref:`clustergrammer_widget`. This section will cover the types of interactions that are available to the user.
Data visualizations benefit enormously from user interactions that allow users to explore their data and interactively generate new views. Clustergrammer produces highly interactive heatmaps that enable users to intuitively explore and perform complex transformations on their data. Clustergrammer visualizations are built using the :ref:`clustergrammer_js` library and are consistent across the :ref:`clustergrammer_web` and the :ref:`clustergrammer_widget`. This section will cover the types of interactions that are available to the user.

Introduction to Clustergrams/Heatmaps
=====================================
Clustergrammer visualizes high-dimensional data as a hierarchically clustered matrix with colored tiles (red for positive numbers and blue for negative numbers) and row/column labels, which is commonly referred to as a heatmap or clustergram (this documentation uses the terms 'heatmap' and 'clustergram' interchangeably; see `Eisen et al., 1998`_ for an early example using biological data). Clustergrams also typically use `dendrogram trees`_ to depict the hierarchy of row and column clusters produced by `hierarchical clustering`_.

Heatmaps are powerful visualizations that enable users to directly visualize high-dimensional data without the loss of information and interpretability associated with dimensionality reduction techniques (e.g. `t-SNE`_). For instance, columns can depict data-points (e.g. measured entities) and rows can depict data-dimensions (e.g. measured variables). In this way, heatmaps can visualize thousands of data-points in thousands of dimensions (e.g. in thousand-dimensional space). However, static heatmaps are of limited use for visualizing large datasets (e.g. for large matrices, visualization elements and labels become too small to read). Furthermore, static heatmaps prevent users from interactively exploring their data, e.g. reordering rows/columns.
Heatmaps are powerful visualizations that enable users to directly visualize high-dimensional data without the loss of information and interpretability associated with dimensionality reduction techniques (e.g. `t-SNE`_). For instance, columns can depict data-points (e.g. measured entities) and rows can depict data-dimensions (e.g. measured variables). In this way, heatmaps can visualize thousands of data-points in thousands of dimensions (e.g. in thousand-dimensional space). However, static heatmaps are of limited use for visualizing large datasets (e.g. for large matrices, visualization elements and labels become too small to read). Furthermore, static heatmaps prevent users from interactively exploring their data, e.g. reordering rows/columns. We built Clustergrammer, in part, to address these issues.

.. _interactive_demo:

Expand Down
68 changes: 22 additions & 46 deletions docs/_build_html/_static/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ div.sphinxsidebar #searchbox input[type="text"] {
width: 170px;
}

div.sphinxsidebar #searchbox input[type="submit"] {
width: 30px;
}

img {
border: 0;
max-width: 100%;
Expand Down Expand Up @@ -122,8 +126,6 @@ ul.keywordmatches li.goodmatch a {

table.contentstable {
width: 90%;
margin-left: auto;
margin-right: auto;
}

table.contentstable p.biglink {
Expand Down Expand Up @@ -151,14 +153,9 @@ table.indextable td {
vertical-align: top;
}

table.indextable ul {
table.indextable dl, table.indextable dd {
margin-top: 0;
margin-bottom: 0;
list-style-type: none;
}

table.indextable > tbody > tr > td > ul {
padding-left: 0em;
}

table.indextable tr.pcap {
Expand Down Expand Up @@ -190,13 +187,6 @@ div.genindex-jumpbox {
padding: 0.4em;
}

/* -- domain module index --------------------------------------------------- */

table.modindextable td {
padding: 2px;
border-collapse: collapse;
}

/* -- general body styles --------------------------------------------------- */

div.body p, div.body dd, div.body li, div.body blockquote {
Expand Down Expand Up @@ -231,6 +221,10 @@ div.body td {
text-align: left;
}

.field-list ul {
padding-left: 1em;
}

.first {
margin-top: 0 !important;
}
Expand Down Expand Up @@ -347,6 +341,10 @@ table.docutils td, table.docutils th {
border-bottom: 1px solid #aaa;
}

table.field-list td, table.field-list th {
border: 0 !important;
}

table.footnote td, table.footnote th {
border: 0 !important;
}
Expand Down Expand Up @@ -383,20 +381,6 @@ div.figure p.caption span.caption-number {
div.figure p.caption span.caption-text {
}

/* -- field list styles ----------------------------------------------------- */

table.field-list td, table.field-list th {
border: 0 !important;
}

.field-list ul {
margin: 0;
padding-left: 1em;
}

.field-list p {
margin: 0;
}

/* -- other body styles ----------------------------------------------------- */

Expand Down Expand Up @@ -447,6 +431,15 @@ dl.glossary dt {
font-size: 1.1em;
}

.field-list ul {
margin: 0;
padding-left: 1em;
}

.field-list p {
margin: 0;
}

.optional {
font-size: 1.3em;
}
Expand Down Expand Up @@ -505,13 +498,6 @@ pre {
overflow-y: hidden; /* fixes display issues on Chrome browsers */
}

span.pre {
-moz-hyphens: none;
-ms-hyphens: none;
-webkit-hyphens: none;
hyphens: none;
}

td.linenos pre {
padding: 5px 0px;
border: 0;
Expand Down Expand Up @@ -603,16 +589,6 @@ span.eqno {
float: right;
}

span.eqno a.headerlink {
position: relative;
left: 0px;
z-index: 1;
}

div.math:hover a.headerlink {
visibility: visible;
}

/* -- printout stylesheet --------------------------------------------------- */

@media print {
Expand Down
Binary file modified docs/_build_html/_static/comment-bright.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_build_html/_static/comment-close.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_build_html/_static/comment.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_build_html/_static/down-pressed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_build_html/_static/down.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_build_html/_static/file.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions docs/_build_html/_static/jquery.js

Large diffs are not rendered by default.

Binary file modified docs/_build_html/_static/minus.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_build_html/_static/plus.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit db865e4

Please sign in to comment.