Skip to main content

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.

Metadata

Release files for neurondm 0.1.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neurondm 0.1.10
File Size Uploaded
neurondm-0.1.10.tar.gz 207.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for neurondm 0.1.10
File Interpreter ABI Platform
neurondm-0.1.10-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 390.3 kB

Release files / neurondm-0.1.10.tar.gz

Download URL neurondm-0.1.10.tar.gz
Size 207.3 kB
Tags Source
SHA-256 checksum
How to use checksums
59e543074e62ef3d48e1efe3691701650420fde865869c454e4acaef321a83a9
BLAKE2b-256 checksum
How to use checksums
0b6c62ee0a7f933851835da58300bbfb9dec70e0f903d0eaa0ad0a0500a0dfd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.11

Release files / neurondm-0.1.10-py2.py3-none-any.whl

Download URL neurondm-0.1.10-py2.py3-none-any.whl
Size 183.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d2a7c5d04f01b22b87f44846f0e4ba8e8cc9c2c2c8bcf1d7785bc4e1f13e46d8
BLAKE2b-256 checksum
How to use checksums
9d3b46c0b2bbb4cb10ec0fb1d9f55dd99b181bfb699293a25bd7a23c4814cf08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.11

Release history Release notifications | RSS feed

This release

0.1.10 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page