Skip to main content

banner

Overview

This project contains the commands which create direction vectors for several brain regions including the cerebellum, the isocortex, and the thalamus of the AIBS P56 mouse brain.

Direction vectors are 3D unit vectors associated to voxels of a brain region. They represent the directions of the fiber tracts and their streamlines are assumed to cross transversely layers in laminar brain regions.

Direction vectors are used in placement-algorithm to set cells orientations.

Direction vectors are also used to compute placement hints and split layer 2/3 of the AIBS mouse isocortex.

After installation, you can display the available command lines with the following bash command:

atlas-direction-vectors --help

Installation

pip install atlas-direction-vectors

Examples

Direction Vectors

Get the required input files:

mkdir -p data/ccfv3

# hierarchy file:
curl -o data/1.json http://api.brain-map.org/api/v2/structure_graph_download/1.json

# CCFv3 annotation volume:
curl -o data/ccfv3/annotation_25.nrrd http://download.alleninstitute.org/informatics-archive/current-release/mouse_ccf/annotation/ccf_2017/annotation_25.nrrd

Run the code (note, depending on the resolution of the volume, this may require significant amounts of available RAM):

atlas-direction-vectors direction-vectors           \
    isocortex                                       \
    --hierarchy-path data/1.json                    \
    --annotation-path data/ccfv3/annotation_25.nrrd \
    --algorithm shading-blur-gradient               \
    --output-path data/ccfv3/direction_vectors.nrrd

For the placeholder orientations, one can compute the vectors for a particular region with:

atlas-direction-vectors direction-vectors           \
from-center                                         \
    --region SSp                                    \
    --hierarchy-path data/1.json                    \
    --annotation-path data/ccfv3/annotation_25.nrrd \
    --output-path placeholder-direction_vectors.nrrd

Instructions for developers

Run the following commands before submitting your code for review:

cd atlas-direction-vectors
isort -l 100 --profile black atlas_direction_vectors tests setup.py
black -l 100 atlas_direction_vectors tests setup.py

These formatting operations will help you pass the linting check testenv:lint defined in tox.ini.

Citation

When you use this software, we kindly ask you to cite the following DOI:

https://zenodo.org/badge/451806460.svg

Acknowledgements

The development of this software was supported by funding to the Blue Brain Project, a research center of the École polytechnique fédérale de Lausanne (EPFL), from the Swiss government’s ETH Board of the Swiss Federal Institutes of Technology.

For license and authors, see LICENSE.txt and AUTHORS.txt respectively.

Copyright © 2022-2024 Blue Brain Project/EPFL

Metadata

Release files for atlas-direction-vectors 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for atlas-direction-vectors 0.1.5
File Size Uploaded Provenance Actions
atlas-direction-vectors-0.1.5.tar.gz 146.6 kB Without provenance Details for atlas-direction-vectors-0.1.5.tar.gz

Release files / atlas-direction-vectors-0.1.5.tar.gz

Download URL atlas-direction-vectors-0.1.5.tar.gz
Size 146.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2235fac2ea425539931cb17ccc4d454a5001d5cdd9101388ed35a0f7175b95eb
BLAKE2b-256 checksum
How to use checksums
7647dad2308563b879f157af8c5a6904f6662cd08314daed132f869403d695e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Security for atlas-direction-vectors 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page