Transforms to map between different Drosophila template brains
Project description
navis-flybrains
Transforms to map between different Drosophila template brains.
This library is analogous to Greg Jefferis' nat.templatebrains, nat.jrcbrains and nat.flybrains for R.
flybrains
ships with meta data and surface meshes for 17 template brains.
It's highly recommended that after install, you download the optional bridging registrations.
If you already have downloaded these registrations via nat.jrcbrains
and/or
nat.flybrains
you can skip this: flybrains
should be able to find the registrations downloaded via R and register
them for you.
>>> import flybrains
# This downloads (or updates) various CMTK bridging and mirror transforms
# generated or collated by the Jefferis lab - see docstring for details
>>> flybrains.download_jefferislab_transforms()
# This downloads h5 bridging transforms generated by the Saalfeld lab (Janelia)
# - see docstring for details
>>> flybrains.download_saalfeldlab_transforms()
In the future, simply importing flybrains
is sufficient to make the
transforms available to navis:
>>> import navis
>>> import flybrains
>>> import numpy as np
>>> points = np.array([[0, 0, 0]])
>>> navis.xform_brain(points, source='FAFB', target='JRC2018F')
On import of flybrains
, these data sources are injected into and can be
readily used to e.g. transform 3d coordinates between brain spaces.
Acknowledgements
Critically based on nat.flybrains
and nat.jrcbrains
by Greg Jefferis
et al. for inspiration for the implementation and meta data on e.g. template
brains.
As reference for the Jefferis lab registrations, please use:
The natverse, a versatile toolbox for combining and analysing neuroanatomical data.
A.S. Bates, J.D. Manton, S.R. Jagannathan, M. Costa, P. Schlegel, T. Rohlfing, G.S. Jefferis
eLife. 9 (2020) e53350. doi:10.7554/eLife.53350.
As (partial) reference for the Saalfeld lab registrations, please see:
An unbiased template of the Drosophila brain and ventral nerve cord.
John A Bogovic, Hideo Otsuna, Larissa Heinrich, Masayoshi Ito, Jennifer Jeter, Geoffrey Meissner, Aljoscha Nern, Jennifer Colonell, Oz Malkesman, Kei Ito, Stephan Saalfeld
bioRxiv 376384; doi: https://doi.org/10.1101/376384
For references of individual template brains, please see their docstrings:
>>> help(flybrains.IBN)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file flybrains-0.1.0.tar.gz
.
File metadata
- Download URL: flybrains-0.1.0.tar.gz
- Upload date:
- Size: 27.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 782be2e3e5419e2185a28c674593d797209aadde774f8fa143edb1974e929a74 |
|
MD5 | 389ae9f58d2cea07b1bfd43d37609707 |
|
BLAKE2b-256 | 525f504e9f76f7899649129e6d51c0912698cbf8f568afefae8def68b550e8d6 |
File details
Details for the file flybrains-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: flybrains-0.1.0-py3-none-any.whl
- Upload date:
- Size: 41.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71427524c279241312ec8972327e8b32828674ef18b1307f06e83e7ec4d19ae3 |
|
MD5 | db60b9356de65481aba7bc117a8a16af |
|
BLAKE2b-256 | 983a656b751329c5b88bcc20f5e241b843e4c5ad2d5ed9dc469ae8307d24f9ec |