Skip to main content

A data model for neuron types.

Project description

neurondm

PyPI version

A data model for neuron types.

Neuron Types

For a an overview of how to use neuron-lang to describing neuron types please see this introduction. For a more in-depth look at the structures that neurons translate to in OWL and some of the modelling decisions related to which reasoner you plan to use see an Overview of OWL modelling decisions

To get started, follow the installation instructions below and then include from neurondm.lang import * in your import statements.

If you want to get started quickly, take a look at the notebook of examples of how to use neuron-lang to create new neurons

If you want to use neurondm in a jupyter notebook, see the docs for how to set up neurondm for jupyter notebooks.

Installation

You can install neurondm using the following commands.

Basics

pip install neurondm

Once installation is complete you should be able to run the following python code.

from neurondm import *
config = Config()
n = Neuron(Phenotype('TEMP:myPhenotype'))
config.write()
config.write_python()

SciGraph API

Set the API key in a separate terminal to avoid losing additional history after setting the api key.

unset HISTFILE
ontutils set scigraph-api-key <key>

Once that is done you should be able to run the following.

python -m neurondm.models.huang2017

NIF-Ontology

To work with the NIF-Ontology and build existing models you need to clone the ontology repository and set your SciGraph API key or set up a local SciGraph instance.

git clone https://github.com/SciCrunch/NIF-Ontology.git
ontutils set ontology-local-repo ./NIF-Ontology
pushd ./NIF-Ontology
git checkout neurons
popd

Further configuration

If you need more details on configuration see the pyontutils configuration section.

Use outside the NIF ontology

It is possible to use neurondm outside the NIF ontology and the pyontutils repository, however it has not been fully abstracted to support that use case. If you want to do something more complicated than the example shown in the installation section you will need to perform some additional configuration. The way to do this is to set all the relevant values via neurondm.Config. See test_neruons.test_roundtrip_py for an example.

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

neurondm-0.1.3.tar.gz (131.3 kB view details)

Uploaded Source

Built Distribution

neurondm-0.1.3-py2.py3-none-any.whl (121.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file neurondm-0.1.3.tar.gz.

File metadata

  • Download URL: neurondm-0.1.3.tar.gz
  • Upload date:
  • Size: 131.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.9

File hashes

Hashes for neurondm-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2cb0a27ee2fb7204322a363944babddcb6f6af5d0357064e0a7bcb56eae82fda
MD5 9f03377e588f7b224a2e0d8413b82f9b
BLAKE2b-256 2e9ff9b78f5ea4dc736d49340b5cb00400cd6094c8708c00c626606b68914d22

See more details on using hashes here.

File details

Details for the file neurondm-0.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: neurondm-0.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 121.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.9

File hashes

Hashes for neurondm-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8901ad3d70b23806ba9d66ea8bf99f952f33cc8221827a07b62172557e341d2b
MD5 86b3f81d384c17a4f249d61aefa6eba8
BLAKE2b-256 f21ba2b7aa61d5f4a4e4b5329b9ab5b4a615fc51078bc0a7bafbe3134a44be93

See more details on using hashes here.

Supported by

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