A morphologically detailed scaffolding package for the scientific modelling of the cerebellum.
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
Hashes for dbbs_scaffold-3.2.8rc0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6494626695cf90a3ecf8c89cca28c69b8340577a1aabbd2b33d518ad5957972 |
|
MD5 | a85df4ec6a5b8825bbdeb06ad4047c07 |
|
BLAKE2b-256 | e20745925ff3c5f3d40f7ab790053ef8fc9d3682a6b9a9184212c9649e9ec0d3 |
Hashes for dbbs_scaffold-3.2.8rc0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 953e68c50f04efa54d0e71534d4adb36f95cf99bebeab18d3a97d86e72f92b33 |
|
MD5 | 0b1ce874ef6f569aa126c9229563dccc |
|
BLAKE2b-256 | ef8f66e3589281d18e7e292b2e705bc19429162493ef2529ea3cacaecb3f926f |
Hashes for dbbs_scaffold-3.2.8rc0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc09f6cc025d93e07b2cf61546a4be0d6a9872270f76f11addb6fa9e89d7af89 |
|
MD5 | 306b5ce3f5a4cdf1aabd624961b3978f |
|
BLAKE2b-256 | bb4d0e8834aa49ebb488d8d52e876731ddc08211ec86c0a2aa9ff22b32d780d1 |