Skip to main content

Lightweight python package for downloading neuron morphologies from the NeuroMorpho archives.

Project description

neuromorphopy

License Documentation

Lightweight python package for downloading neuron morphologies from the NeuroMorpho archives.

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

neuromorphopy-0.1.1.tar.gz (100.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neuromorphopy-0.1.1-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

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

Hashes for neuromorphopy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dd42738828412a110f6646a458d736ea97e80754e92410ca2076e15b5f08607e
MD5 2bd44b0ce11543fead1a83d98fb9a1e9
BLAKE2b-256 f56a9aff161b61857743cc9bf4101537cb6b51136f2a732faf637c5fbf488a75

See more details on using hashes here.

File details

Details for the file neuromorphopy-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for neuromorphopy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 74d9e1e0441f2398d878946122a7ff75eb623fce56770de7244fe4dd4e224dea
MD5 b95f5a2a371a4519a7599bcab0ec1697
BLAKE2b-256 88474b345ee400bedd7ab3dfae2d640b5497c32c7fe4cfd5bc50e6d5c0d51512

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page