Skip to main content

A morphologically detailed scaffolding package for the scientific modelling of the cerebellum.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Code style: black Build Status codecov

Note: The scaffold framework is still under heavy development. Please check the Known Issues section at the bottom for important issues that fell victim to our deadlines and will be solved at a later date.

Scaffold: A scaffold model for the cerebellum

This package is intended to facilitate spatially, topologically and morphologically detailed simulations of the cerebellum developed by the Department of Brain and Behavioral Sciences at the University of Pavia.

Installation

pip

This software can be installed as a Python package from PyPI through pip:

 sudo apt-get python3-rtree
 pip install dbbs-scaffold

Note: Windows users will have to install Rtree from this website: https://www.lfd.uci.edu/~gohlke/pythonlibs/#rtree

Developers

Developers best use pip's editable install. This creates a live link between the installed package and the local git repository:

 sudo apt-get install python3-rtree
 git clone git@github.com:Helveg/cerebellum-scaffold.git
 cd cerebellum-scaffold
 pip install -e .[dev] --no-use-pep517
 pre-commit install

Usage

The scaffold model can be used through the command line interface or as a python package.

Command line interface (CLI)

Run the scaffold in the command line with subcommand compile to compile a network architecture.

scaffold --config=mouse_cerebellum.json compile -x=200 -y=200 -p

To run with different configurations, change the config argument to the relative path of a .json config file. The -p flag indicates that the compiled network should be plotted afterwards and can be omitted.

Python package

The central object is the scaffold.core.Scaffold class. This object requires a scaffold.config.ScaffoldConfig instance for its construction. To emulate the CLI functionality you can use the JSONConfig class and provide the relative path to the configuration file.

from scaffold import Scaffold
from scaffold.config import JSONConfig

config = new JSONConfig(file='mouse_cerebellum.json')
scaffoldInstance = new Scaffold(config)

This scaffold instance can then be used to perform the subcommands available in the CLI by calling their corresponding functions:

scaffoldInstance.compile_network()

Plotting network architecture

After calling compile_network the scaffold instance can be plotted:

scaffoldInstance.plot_network_cache()

Known issues

No configuration serialization

When modifying the config object through scripts and then saving it to file, you'll store the original configuration file text, and you won't actually serialize the modified object

We will fix this by version 3.2

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

dbbs_scaffold-3.2.12rc0-cp36-cp36m-manylinux1_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.6m

dbbs_scaffold-3.2.12rc0-cp35-cp35m-manylinux1_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.5m

File details

Details for the file dbbs_scaffold-3.2.12rc0-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: dbbs_scaffold-3.2.12rc0-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.9

File hashes

Hashes for dbbs_scaffold-3.2.12rc0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 de1f6d17dd0ac2bda337dba3b4c9168dc7b44cb4bd72342e030c923af578acdd
MD5 fa954ab690d959cafd7b99765b746ddd
BLAKE2b-256 2e3272e4e0a11bdd33d97d2000e35763f6fe3085c6f86ea49f8307c7c3d42597

See more details on using hashes here.

File details

Details for the file dbbs_scaffold-3.2.12rc0-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: dbbs_scaffold-3.2.12rc0-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.9

File hashes

Hashes for dbbs_scaffold-3.2.12rc0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c96fb4d809ab659b715b2155f15de91e0b64456e333a8c220425d7d3222e9f14
MD5 6507533af65852c6a87e7aed164c9852
BLAKE2b-256 2869f0a7aceb0a4b016c91c99ba9ee99f4c101b7464ecae67d0d8eb084160f9f

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