Git Product home page Git Product logo

marioernestovaldes / clustergrammer2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ismms-himc/clustergrammer2

0.0 0.0 0.0 65.62 MB

"Dimensionality-increasing" data visualization tool and interactive WebGL Jupyter widget built for single-cell data.

Home Page: https://clustergrammer.readthedocs.io/case_studies.html

License: MIT License

Python 27.96% JavaScript 0.58% TypeScript 2.37% Jupyter Notebook 15.22% HTML 53.87%

clustergrammer2's Introduction

Clustergramer2

badge

ccle_gif

Clustergrammer2 is an interactive heatmap Jupyter widget built using the widget-ts-cookiecutter library and the WebGL library regl. Clustergrammer2 is built to help researchers interactively explore single cell data (e.g. scRNA-seq). Please see Case Studies and Tutorials for examples.

Clustergrammer2 Examples

Basic Example of Running Clustergrammer2 on MyBinder

badge Nbviewer

Running Clustergrammer2

The above notebook shows how Clustergrammer2 can be used to load a small dataset and visualize a large random DataFrame. By running the notebook on MyBinder using Jupyter Lab it can also be used to visualize a user uploaded dataset. Please see the video tutorial above for more information.

For additional examples and tutorials please see:

2,700 PBMC scRNA-seq

badge Nbviewer

2,700 PBMC scRNA-seq

Single cell RNA-seq (scRNA-seq) is a powerful method to interrogate gene expression across thousands of single cells. This method produces thousands of measurements (single cells) across thousands of dimensions (genes). This notebook uses Clustergrammer2 to interactively explore an example dataset measuring the gene expression of 2,700 PBMCs obtained from 10X Genomics. Bulk gene expression signatures of cell types from CIBERSORT were used to obtain a tentative cell type for each cell. Please see the video tutorial above for more information.

Clustergrammer2 Roadmap

Please see the project Roadmap for information on where the project is heading.

Installation

A typical installation requires the following commands to be run:

pip install clustergrammer2
jupyter nbextension install --py --sys-prefix clustergrammer2
jupyter nbextension enable --py --sys-prefix clustergrammer2

Optionally: --sys-prefix|--user|--system

Or, if you use jupyterlab:

pip install clustergrammer2
jupyter labextension install @jupyter-widgets/jupyterlab-manager

Embedding the widget into static HTML Notebooks

jupyter nbconvert --to html notebook.ipynb

Development

During development run npm run watch for real time updates. When releasing a new version, first confirm that latest version of the front and back ends are working locally (check console logs, etc).

Updating versions

Update the versions in the following files

JavaScript
  • package.json
  • widget.ts

Python

  • _version.py
  • example.py
  • requirements.txt
  • _frontend.py

Webpack

Run the following commands to build the JavaScript bundle:

npm run build
npm run build:nbextension
npm run build:labextension

Publish to npm using

npm publish

These instructions are based on the release instructions from the jupyter-widgets/widget-ts-cookiecutterREADME.

Bundling the Python Package

Next, bundle the python package using (optinally delete the old versions under dist)

python setup.py sdist bdist_wheel

Then, upload the PYPI:

twine upload dist/*

Checklist after release

After releasing a new version several things need to be checked to ensure proper widget functioning.

Check Package Managers

Check HTML Embedding

Check Cloud Services

  • Check MyBinder

Note for Sublime Development

Use this in the where section to restrict search

clustergrammer2/*.py,-*/build/*

Contact

For issues and concerns please use the issue tracker or gitter discussion room.

clustergrammer2's People

Contributors

bhhlee avatar cornhundred avatar dependabot[bot] avatar manugarciaquismondo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.