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:

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 -z=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.3.0rc0-cp37-cp37m-manylinux1_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.7m

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

Uploaded CPython 3.6m

dbbs_scaffold-3.3.0rc0-cp35-cp35m-manylinux1_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.5m

File details

Details for the file dbbs_scaffold-3.3.0rc0-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: dbbs_scaffold-3.3.0rc0-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.9

File hashes

Hashes for dbbs_scaffold-3.3.0rc0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6ef143f72ee3bb409192ebbf9f5cc5b116c3f37742673cedbcbf78252ab1d201
MD5 7f343646dd9e5dac4bb6b7fed3308b83
BLAKE2b-256 6c1c86702df995f0e1573e42cb49436c8c4cdfdb7fe6fe0a4d1e72c1f127a45c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dbbs_scaffold-3.3.0rc0-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.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.9

File hashes

Hashes for dbbs_scaffold-3.3.0rc0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c97dfb03b9a49a276f3ff2e7f946dd5807190b2900b1b07f04942118b4186a29
MD5 802ca8639e3704e8fe1ef6a31f265142
BLAKE2b-256 c003d6c5297b575e5215af6cec81016160bdee622ebe17dc2154144898d15f81

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dbbs_scaffold-3.3.0rc0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c6d317f5b68026c1c6c26ae9446f4662f9ecfc5e917e60856edceec8dad0f9fe
MD5 f0e79b94770324eaf05a3b8e3e64e889
BLAKE2b-256 9f2e2f583d81c2e1e1f015ddf30d5eb6a63dc556ce08d538a89dbaebab7f1c4a

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