{"id":21274915,"url":"https://github.com/maayanlab/clustergrammer-widget","last_synced_at":"2025-07-11T07:30:33.870Z","repository":{"id":52164690,"uuid":"68749261","full_name":"MaayanLab/clustergrammer-widget","owner":"MaayanLab","description":"The Clustergrammer interactive Jupyter notebook widget","archived":false,"fork":false,"pushed_at":"2022-12-07T23:24:22.000Z","size":30937,"stargazers_count":47,"open_issues_count":17,"forks_count":27,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-06T01:32:23.860Z","etag":null,"topics":["clustering","jupyter-notebook","jupyter-widget","pandas-dataframe","python","visualization"],"latest_commit_sha":null,"homepage":"http://nbviewer.jupyter.org/github/MaayanLab/clustergrammer-widget/blob/master/Running_clustergrammer_widget.ipynb","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MaayanLab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-20T20:08:36.000Z","updated_at":"2025-02-28T18:07:07.000Z","dependencies_parsed_at":"2023-01-25T00:00:11.491Z","dependency_job_id":null,"html_url":"https://github.com/MaayanLab/clustergrammer-widget","commit_stats":null,"previous_names":[],"tags_count":59,"template":false,"template_full_name":null,"purl":"pkg:github/MaayanLab/clustergrammer-widget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaayanLab%2Fclustergrammer-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaayanLab%2Fclustergrammer-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaayanLab%2Fclustergrammer-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaayanLab%2Fclustergrammer-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaayanLab","download_url":"https://codeload.github.com/MaayanLab/clustergrammer-widget/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaayanLab%2Fclustergrammer-widget/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264756298,"owners_count":23659299,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clustering","jupyter-notebook","jupyter-widget","pandas-dataframe","python","visualization"],"created_at":"2024-11-21T09:26:19.948Z","updated_at":"2025-07-11T07:30:30.324Z","avatar_url":"https://github.com/MaayanLab.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"Clustergrammer-Widget\n===============================\n\nThis is a [Jupyter](http://jupyter.org/) notebook [interactive widget](https://github.com/ipython/ipywidgets) implementation of the interactive heatmap tool [Clustergrammer](https://github.com/MaayanLab/clustergrammer). The front-end visualization, [clustergrammer.js](https://github.com/MaayanLab/clustergrammer) is built using D3.js and the back-end, [clustergrammer.py](https://github.com/MaayanLab/clustergrammer-py) is built in Python.\n\nPlease refer to the [Clustergrammer-Widget](http://clustergrammer.readthedocs.io/clustergrammer_widget.html) documentation for more information or click on the screenshot below to see an example notebook.\n\n[![demo_screenshot](img/demo_high-fr.gif \"demo_high-fr.gif\")](http://nbviewer.jupyter.org/github/MaayanLab/clustergrammer-widget/blob/master/Running_clustergrammer_widget.ipynb)\n\n# Installation\nThe interactive widget can be installed and enabled using the following commands:\n\n    pip install clustergrammer_widget\n    jupyter nbextension enable --py --sys-prefix widgetsnbextension\n    jupyter nbextension enable --py --sys-prefix clustergrammer_widget\n\n# Dependencies\n* Numpy\n* Scipy\n* Pandas\n\nClustergrammer-widget is compatable with Python 2 and 3.\n\n\n# Example Workflow\nThe Clustergrammer-widget can be used to visualize a matrix of your data in the TSV format described [here](https://github.com/MaayanLab/clustergrammer/tree/working#input-matrix-format).\n\nWithin the Jupyter/IPython notebook the widget can be run using the following commands\n\n```\n# import the widget\nfrom clustergrammer_widget import *\n\n# load data into new network instance and cluster\nnet = Network(clustergrammer_widget)\nnet.load_file('rc_two_cats.txt')\nnet.cluster()\n\n# view the results as a widget\nnet.widget()\n```\n\n# Case Studies and Examples\nThe Clustergrammer-Widget has been applied to a wide variety of biological and non-biological data. Refer to the Jupyter notebook examples below and [Case Studies and Examples](http://clustergrammer.readthedocs.io/case_studies.html) for more information:\n\n- [Running Clustergrammer Widget](http://nbviewer.jupyter.org/github/MaayanLab/clustergrammer-widget/blob/master/Running_clustergrammer_widget.ipynb)\n- [DataFrame Example](http://nbviewer.jupyter.org/github/MaayanLab/clustergrammer-widget/blob/master/DataFrame_Example.ipynb)\n- [CCLE Jupyter Notebook](http://nbviewer.jupyter.org/github/MaayanLab/CCLE_Clustergrammer/blob/master/notebooks/Clustergrammer_CCLE_Notebook.ipynb)\n- [Lung Cancer PTM and Gene Expression Regulation](http://nbviewer.jupyter.org/github/MaayanLab/CST_Lung_Cancer_Viz/blob/master/notebooks/CST_Data_Viz.ipynb)\n- [Single-Cell CyTOF Data](http://nbviewer.jupyter.org/github/MaayanLab/Cytof_Plasma_PMA/blob/master/notebooks/Plasma_vs_PMA_Phosphorylation.ipynb)\n- [MNIST Notebook](http://nbviewer.jupyter.org/github/MaayanLab/MNIST_heatmaps/blob/master/notebooks/MNIST_Notebook.ipynb#Visualize-Downsampled-Version-of-MNIST)\n- [USDA Nutrient Dataset](http://nbviewer.jupyter.org/github/MaayanLab/USDA_Nutrients_Viz/blob/master/USDA_Nutrients.ipynb)\n- [Iris Dataset](http://nbviewer.jupyter.org/github/MaayanLab/iris_clustergrammer_visualization/blob/master/Iris%20Dataset.ipynb)\n\n# Development Installation\nFor a development installation (requires npm),\n\n    $ git clone https://github.com/maayanlab/clustergrammer-widget.git\n    $ cd clustergrammer-widget\n    $ pip install -e .\n    $ jupyter nbextension install --py --symlink --user clustergrammer_widget\n    $ jupyter nbextension enable --py --user clustergrammer_widget\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaayanlab%2Fclustergrammer-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaayanlab%2Fclustergrammer-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaayanlab%2Fclustergrammer-widget/lists"}