brainglobe-heatmap
Rendering anatomical heatmaps with brainrender and matplotlib
Science Score: 57.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 9 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.1%) to scientific vocabulary
Keywords
Repository
Rendering anatomical heatmaps with brainrender and matplotlib
Basic Info
- Host: GitHub
- Owner: brainglobe
- License: mit
- Language: Python
- Default Branch: main
- Homepage: https://brainglobe.info/documentation/brainglobe-heatmap/
- Size: 1.71 MB
Statistics
- Stars: 44
- Watchers: 4
- Forks: 15
- Open Issues: 8
- Releases: 9
Topics
Metadata Files
README.md
brainglobe-heatmap
brainglobe-heatmap allows you to create heatmaps, mapping scalar values for each brain region (e.g., number of labelled cells in each region) to a color and creating visualizations in 2D (using matplotlib or 3D (using brainrender).
2D heatmap generated using matplotlib - adapted from Fig 1. from Hansen et al (2025)
3D heatmap generated using brainrender
Usage
For full documentation, please see the BrainGlobe documentation. Examples can be found in the examples directory of this repository.
Quickstart
Installation
pip install brainglobe-heatmap
2D heatmap
```python
import brainglobe_heatmap as bgh
values = dict( # scalar values for each region TH=1, RSP=0.2, AI=0.4, SS=-3, MO=2.6, PVZ=-4, LZ=-3, VIS=2, AUD=0.3, RHP=-0.2, STR=0.5, CB=0.5, FRP=-1.7, HIP=3, PA=-4, )
f = bgh.Heatmap( values, position=5000, orientation="frontal", vmin=-5, vmax=3, format="2D", ).show() ```
3D heatmap
```python
import brainglobe_heatmap as bgh
values = dict( # scalar values for each region TH=1, RSP=0.2, AI=0.4, SS=-3, MO=2.6, PVZ=-4, LZ=-3, VIS=2, AUD=0.3, RHP=-0.2, STR=0.5, CB=0.5, FRP=-1.7, HIP=3, PA=-4, )
scene = bgh.Heatmap( values, position=(8000, 5000, 5000), orientation="frontal", thickness=1000, vmin=-5, vmax=3, format="3D", ).show()
```
Seeking help or contributing
We are always happy to help users of our tools, and welcome any contributions. If you would like to get in contact with us for any reason, please see the contact page of our website.
Citing brainglobe-heatmap
If you use brainglobe-heatmap in your work, please cite it as:
Federico Claudi, Adam Tyson, Luigi Petrucco, Mathieu Bourdenx, carlocastoldi, Rami Hamati, & Alessandro Felder. (2024). brainglobe/brainglobe-heatmap. Zenodo. https://doi.org/10.5281/zenodo.10375287
If you use brainrender via brainglobe-heatmap (i.e. for 3D visualisation), please also cite it:
Claudi, F., Tyson, A. L., Petrucco, L., Margrie, T.W., Portugues, R., Branco, T. (2021) "Visualizing anatomically registered data with Brainrender" <i>eLife</i> 2021;10:e65751 [doi.org/10.7554/eLife.65751](https://doi.org/10.7554/eLife.65751)
BibTeX:
bibtex
@article{Claudi2021,
author = {Claudi, Federico and Tyson, Adam L. and Petrucco, Luigi and Margrie, Troy W. and Portugues, Ruben and Branco, Tiago},
doi = {10.7554/eLife.65751},
issn = {2050084X},
journal = {eLife},
pages = {1--16},
pmid = {33739286},
title = {{Visualizing anatomically registered data with brainrender}},
volume = {10},
year = {2021}
}
Owner
- Name: BrainGlobe
- Login: brainglobe
- Kind: organization
- Location: London/Munich
- Website: https://brainglobe.info/
- Twitter: brain_globe
- Repositories: 28
- Profile: https://github.com/brainglobe
Open python tools for morphological analyses in systems neuroscience
Citation (CITATION.cff)
# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!
cff-version: 1.2.0
title: brainglobe-heatmap
message: >-
If you use this software, please cite it using the
metadata from this file.
type: software
authors:
- given-names: Federico
family-names: Claudi
- given-names: Luigi
family-names: Petrucco
- given-names: BrainGlobe
family-names: Developers
email: hello@brainglobe.info
repository-code: 'https://github.com/brainglobe/brainglobe-heatmap'
url: 'https://brainglobe.info'
abstract: >-
brainglobe-heatmap allows you to create heatmaps, mapping
scalar values for each brain region (e.g., number of
labelled cells in each region) to a color and creating
beautiful visualizations in 2D or 3D.
license: MIT
date-released: '2023-12-23'
doi: 10.5281/zenodo.10375274
year: 2023
GitHub Events
Total
- Create event: 14
- Release event: 2
- Issues event: 11
- Watch event: 8
- Delete event: 11
- Issue comment event: 50
- Push event: 29
- Pull request review comment event: 15
- Pull request review event: 41
- Pull request event: 46
- Fork event: 5
Last Year
- Create event: 14
- Release event: 2
- Issues event: 11
- Watch event: 8
- Delete event: 11
- Issue comment event: 50
- Push event: 29
- Pull request review comment event: 15
- Pull request review event: 41
- Pull request event: 46
- Fork event: 5
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 7
- Total pull requests: 50
- Average time to close issues: about 15 hours
- Average time to close pull requests: 7 days
- Total issue authors: 5
- Total pull request authors: 11
- Average comments per issue: 0.57
- Average comments per pull request: 1.24
- Merged pull requests: 39
- Bot issues: 0
- Bot pull requests: 18
Past Year
- Issues: 5
- Pull requests: 23
- Average time to close issues: about 15 hours
- Average time to close pull requests: 10 days
- Issue authors: 4
- Pull request authors: 6
- Average comments per issue: 0.8
- Average comments per pull request: 1.83
- Merged pull requests: 18
- Bot issues: 0
- Bot pull requests: 11
Top Authors
Issue Authors
- adamltyson (3)
- zenWai (2)
- leesuyee (2)
- alessandrofelder (1)
- joseale2310 (1)
- IgorTatarnikov (1)
Pull Request Authors
- pre-commit-ci[bot] (20)
- adamltyson (13)
- IgorTatarnikov (8)
- carlocastoldi (4)
- zenWai (3)
- willGraham01 (2)
- lochhh (1)
- K-Meech (1)
- alessandrofelder (1)
- samclothier (1)
- RobertoDF (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 554 last-month
- Total dependent packages: 2
- Total dependent repositories: 0
- Total versions: 7
- Total maintainers: 1
pypi.org: brainglobe-heatmap
Rendering anatomical heatmaps with brainrender and matplotlib
- Homepage: https://github.com/brainglobe/brainglobe-heatmap
- Documentation: https://github.com/brainglobe/brainglobe-heatmap
- License: MIT
-
Latest release: 0.6.0
published 12 months ago
Rankings
Maintainers (1)
Dependencies
- actions/download-artifact v3 composite
- neuroinformatics-unit/actions/build_sdist_wheels v2 composite
- neuroinformatics-unit/actions/check_manifest v2 composite
- neuroinformatics-unit/actions/lint v2 composite
- neuroinformatics-unit/actions/test v2 composite
- pypa/gh-action-pypi-publish v1.5.0 composite