Lightweight python package for downloading neuron morphologies from the NeuroMorpho archives.
Project description
neuromorphopy
Lightweight python package for downloading neuron morphologies from the NeuroMorpho archives.
- Github repository: https://github.com/kpeez/neuromorphopy/
Features
- Simple and intuitive API for searching NeuroMorpho.org
- Efficient concurrent downloads of neuron morphologies
- Flexible query system with validation
- Automatic metadata handling
- Support for both synchronous and asynchronous operations
Requirements
- Python >= 3.11
Installation
The easiest way to install is using pip:
git clone https://github.com/kpeez/neuromorphopy.git
cd neuromorphopy
pip install -r requirements.txt
pip install -e .
Development
For development work, we recommend using uv for faster dependency resolution and better reproducibility:
# Install uv if you haven't already
curl -LsSf https://astral.sh/uv/install.sh | sh
# Clone and install
git clone https://github.com/kpeez/neuromorphopy.git
cd neuromorphopy
uv venv
uv sync
Usage
Create a query file (YAML or JSON) to specify what neurons you want:
# query.yml
filters:
species: ["mouse"]
brain_region: ["neocortex"]
cell_type: ["pyramidal"]
sort: # sorting is optional
field: "brain_region"
ascending: true
Use the command line interface to search and download neurons:
neuromorpho search -q query.yml -o ./data
For advanced usage and programmatic API, see our documentation.
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file neuromorphopy-0.1.1.tar.gz.
File metadata
- Download URL: neuromorphopy-0.1.1.tar.gz
- Upload date:
- Size: 100.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd42738828412a110f6646a458d736ea97e80754e92410ca2076e15b5f08607e
|
|
| MD5 |
2bd44b0ce11543fead1a83d98fb9a1e9
|
|
| BLAKE2b-256 |
f56a9aff161b61857743cc9bf4101537cb6b51136f2a732faf637c5fbf488a75
|
File details
Details for the file neuromorphopy-0.1.1-py3-none-any.whl.
File metadata
- Download URL: neuromorphopy-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74d9e1e0441f2398d878946122a7ff75eb623fce56770de7244fe4dd4e224dea
|
|
| MD5 |
b95f5a2a371a4519a7599bcab0ec1697
|
|
| BLAKE2b-256 |
88474b345ee400bedd7ab3dfae2d640b5497c32c7fe4cfd5bc50e6d5c0d51512
|