Library for manipulating neuromorpho resources.
Project description
# neuromorpholib
## Usage
A simple download of known dataset and name:
```python
from neuromorpholib import neuromorpho
nmo = neuromorpho.NeuroMorpho()
acc1 = nmo.download_swc("martone", "ACC1")
```
A query for all species=mouse neurons:
```python
mouse_neurons = nmo.search({"species": "mouse"})
```
Download a SWC for a mouse neuron:
```python
swc_demo = nmo.download_swc(
mouse_neurons[0]
)
```
If you know the archive name and neuron name, you can also download the swc directly by passing `archive` and `neuron_name` arguments.
If you only want the SWC text and don't want it to be converted into a `NeuronMorphology` object, you can pass `text_only=True`.
## Usage
A simple download of known dataset and name:
```python
from neuromorpholib import neuromorpho
nmo = neuromorpho.NeuroMorpho()
acc1 = nmo.download_swc("martone", "ACC1")
```
A query for all species=mouse neurons:
```python
mouse_neurons = nmo.search({"species": "mouse"})
```
Download a SWC for a mouse neuron:
```python
swc_demo = nmo.download_swc(
mouse_neurons[0]
)
```
If you know the archive name and neuron name, you can also download the swc directly by passing `archive` and `neuron_name` arguments.
If you only want the SWC text and don't want it to be converted into a `NeuronMorphology` object, you can pass `text_only=True`.
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
neuromorpholib-0.0.1.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for neuromorpholib-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa5c475e1bc9cbc52ead3e494d6d3055b3a8f7c3904e28f91b2028b87af7f203 |
|
MD5 | 78a2511a7c8473a984957d6fba5ce6ab |
|
BLAKE2b-256 | 32f4c87262d7e8545a0024ba066a17f5e42043ec4614a409fa99223c451eccee |