-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor get cache function to return higher level instead of `flatmaps` folder * wip plenty of stuff * make sure slice dimension are consistent regardless of the volume memory layout * add the agea atlas backend with geometry * bugfixes * windows CI tests require memmap to be closed to remove tempdir * review comments modifications
- Loading branch information
Showing
19 changed files
with
523 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
# iblatlas | ||
This repository contains tools to manipulate 3D representations of the mouse brain anatomy for electrophysiolgy experiments. | ||
The tools are mainly using the the Allen Brain Atlas although some other atlases can be used and are written in Python. | ||
Tools to manipulate hierarchical 3D representations of the mouse brain anatomy for electrophysiolgy experiments. | ||
The tools are mainly using the the Allen CCF although some other atlases can be used. | ||
|
||
One of the requirment of this repository is to use minimal requirements, based of standard matplotlib, numpy and scipy libraries, and excludes visualisation tool. | ||
**This repository uses minimal requirements, based of standard `matplotlib`, `numpy` and `scipy` libraries, to the exclusion | ||
of more complex visualization tools such as `pyqt`.** | ||
|
||
The documentation can be found here: https://int-brain-lab.github.io/iblenv/notebooks_external/atlas_working_with_ibllib_atlas.html | ||
## Documentation | ||
[Full package documentation](https://int-brain-lab.github.io/iblenv/_autosummary/iblatlas.html#module-iblatlas) | ||
|
||
[Notebooks and examples](https://int-brain-lab.github.io/iblenv/notebooks_external/atlas_working_with_ibllib_atlas.html) | ||
|
||
## Installation | ||
`pip install iblatlas` | ||
|
||
|
||
## Contributing | ||
Changes are merged by pull requests. | ||
Release checklist: | ||
- [ ] Update version in `iblatlas/__init__.py` | ||
- [ ] Update `CHANGELOG.md` | ||
- [ ] Create a pull request to the `main` branch on GitHub | ||
- [x] Update version in `iblatlas/__init__.py` | ||
- [x] Update `CHANGELOG.md` | ||
- [x] Create a pull request to the `main` branch on GitHub | ||
- [x] Once the PR is merged, create a new tag and push the tag | ||
|
||
Once merged the package is uploaded to PyPI using GitHub Actions. | ||
Once a tag is pushed on main the package is uploaded to PyPI using GitHub Actions. |
14 changes: 14 additions & 0 deletions
14
examples/atlas_genomics_load_allen_gene_expression_atlas.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import matplotlib.pyplot as plt | ||
from iblatlas.genomics import agea | ||
|
||
df_genes, gene_expression_volumes, atlas_agea = agea.load() | ||
|
||
igenes = (0,) | ||
fig, axs = plt.subplots(3, 2, sharex=True, sharey=True) | ||
atlas_agea.plot_cslice(0, ax=axs[0, 0]) | ||
atlas_agea.plot_cslice(0, ax=axs[1, 0], volume='annotation') | ||
atlas_agea.plot_cslice(0, ax=axs[2, 0], volume=gene_expression_volumes[igenes[0]], cmap='viridis') | ||
atlas_agea.plot_sslice(0, ax=axs[0, 1]) | ||
atlas_agea.plot_sslice(0, ax=axs[1, 1], volume='annotation') | ||
atlas_agea.plot_sslice(0, ax=axs[2, 1], volume=gene_expression_volumes[igenes[0]], cmap='viridis') | ||
fig.tight_layout() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.