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 python3-rtree
 git clone git@github.com:Helveg/cerebellum-scaffold.git
 cd cerebellum-scaffold
 pip install -e .[dev]
 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.5rc0-cp37-cp37m-manylinux1_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.7m

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

Uploaded CPython 3.6m

dbbs_scaffold-3.2.5rc0-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.5rc0-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: dbbs_scaffold-3.2.5rc0-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.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.5rc0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 01a35ec760f7d5ac1e411ed5af32f83c2a5b3b369fc5eb5e3c30620ff4438212
MD5 e755d6108d968126db151e163bc54764
BLAKE2b-256 c2f3adaaf3fcafe0a0bc6e22e9d4a10649da76e98b10ff219fc005867dccfa4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dbbs_scaffold-3.2.5rc0-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.5rc0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b2a41c7f91e2896049351b5a4cf3153444d733881dfdbdf4626ae9c2052af9a3
MD5 38afa3c736e6c674b65c66e4d4e32bf2
BLAKE2b-256 3e1ca95efedf6c61d57cac49a71caaeb68a87d37de86ced2b143dc4761fc3e3b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dbbs_scaffold-3.2.5rc0-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.5rc0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c79b8ace934003b34a67b84ffbcb5213a886b79e9e8231f8ccfdf3ed4b90df1f
MD5 818c220849173a07081e640fdcb634a2
BLAKE2b-256 2d01a8cc0f01c79a63ad6508b729f7c39b598fc48d72d9df7a39371ebbd7bc70

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