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.0.tar.gz (100.7 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.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file neuromorphopy-0.1.0.tar.gz.

File metadata

  • Download URL: neuromorphopy-0.1.0.tar.gz
  • Upload date:
  • Size: 100.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.29

File hashes

Hashes for neuromorphopy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1bc4558fab36316ba3bf1a5893770d5a6f9ee8d879b1764e4e9d023e9f6d5d81
MD5 501a72b8746df64cb25af0c3c462cc7d
BLAKE2b-256 2169a02ea35bb0e7bab45ff57ac48875e4c14924bca48eda25ce26fdc2d8a39b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for neuromorphopy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bcae5679f89a548e5abf541b8860802de5777c80580d66a30fe86fba94290c39
MD5 d5b5ab4476c06e8ac5f8c4eb9c99e36f
BLAKE2b-256 7b1c68c4bbd0789f7c3543a52752b56382e7d93160bf89b9ecba9a4f239ec033

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