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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dbbs_scaffold-3.2.3rc0-cp37-cp37m-win_amd64.whl.
File metadata
- Download URL: dbbs_scaffold-3.2.3rc0-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 912.2 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b7ae89888003e48413dc167392a3e402b8f6062cdb8991a54807791a082a3b3
|
|
| MD5 |
7684a7b2d77f38038f2c24ae7d0fb188
|
|
| BLAKE2b-256 |
c38aed60a2bc574619aa634a08615cd11b437c6fbeef3d2bfc59c126874aea09
|
File details
Details for the file dbbs_scaffold-3.2.3rc0-cp37-cp37m-manylinux1_x86_64.whl.
File metadata
- Download URL: dbbs_scaffold-3.2.3rc0-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.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a79d90aa0696922717fbc42a5c7ca8da81f4c2533bf9829248e38ee5b9970384
|
|
| MD5 |
f7b3fbe3fc6a8a91188ca5eca99e14be
|
|
| BLAKE2b-256 |
e0e3c6d94edf93afbeb949a76d56eb8f605955970ec85a64eb5909502ceba8af
|
File details
Details for the file dbbs_scaffold-3.2.3rc0-cp36-cp36m-manylinux1_x86_64.whl.
File metadata
- Download URL: dbbs_scaffold-3.2.3rc0-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.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e318ca39cf2c29980810a05447ab982b329bd1eeba9b69944a51a634d01e61e
|
|
| MD5 |
5477af45bfddd43781937ebacb2b9701
|
|
| BLAKE2b-256 |
3f8dac2129451f878fa131d63622ff75fbef845a81b9f42d25b68e07b6e4e217
|
File details
Details for the file dbbs_scaffold-3.2.3rc0-cp35-cp35m-manylinux1_x86_64.whl.
File metadata
- Download URL: dbbs_scaffold-3.2.3rc0-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.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36d6f967c6b46301e5cff5384c59ff88034afb99a31c5ad3209f16ec514f9717
|
|
| MD5 |
e5a81f5e24e0a1518694f2d96667aaf0
|
|
| BLAKE2b-256 |
9b94fb5c3fee16e35e78b52cdf8b27120d09ff2c0c08d2ebad402cba8a5a1bc2
|