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.1.0.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for neuromorpholib-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c271be9baff595d89f4244e5d28f887de64444926d89c28c88bfcd547f179caa |
|
MD5 | b3c90542d3f19cbf683ab1dbb91b8fb7 |
|
BLAKE2b-256 | 2375eb6b41875df637557a72afe1b592170731b564761b0c0ed23e0dd4602807 |