The purpose of this guide is to introduce users to the graphical interface of DendroTweaks. For a quick overview of the toolbox, including a video demonstration, you can visit our e-poster at the World-wide.org platform.
DendroTweaks is a web-based Python toolbox. It can be accessed through our online platform (Home page). Alternatively, the toolbox can be installed locally and run with a Bokeh server. The core functionality of the toolbox is also available as a standalone Python library, and interactive Jupyter notebooks are included in the repository. In this section, we will explain how to locally install DendroTweaks and run it in GUI mode. If you are using the online version, feel free to skip to the next section.
Create and activate a conda environment (recommended) using the provided environment.yml file:
conda env create -f environment.yml
conda activate dendrotweaks
Alternatively, install required packages using pip:
pip install -r requirements.txt
To run the Bokeh server and launch the app locally, use the following command:
bokeh serve --show app
This will start the Bokeh server and automatically open your default web browser to display the app.
The GUI consists of three main components:
The left menu consists of three submenus:
.swc
and .mod
files..swc
files and a slider to set the d_lambda
spatial discretization parameter. It is recommended to set d_lambda
before uploading a morphology.Export
and Import
buttons can be used to save the current session, including inserted channels and their distributions, as well as stimulation parameters.
Note that mechanisms for calcium dynamics, synaptic inputs and external currents are not exported. The multiselect widgets allow for adding or removing mechanisms individually.The right menu is divided into two sections: Cell and Channels. The Cell menu further consists of three submenus:
Ra
spinner can be used to adjust the axial resistance for multiple selected sections..swc
file.To create a new model, you typically need a neuronal morphology in the form of an .swc
file and membrane mechanisms (.mod
files) to be used in NEURON. In our demo, we provide some preset models for you to use:
To begin working with DendroTweaks, select a model morphology from the list of available .swc
files in the left menu
under the Input / Output
tab. The Cell and the Graph plots will appear in the main workspace.
We recommend using Park_2019.swc
as a simpler and faster model for this tutorial. Note that in order to be able to select another cell,
you need to reload the page.
Input / Output
tab in the left menu.Import biophys
button.
Wait untill the mechanism names appear in the multiselect widget. It may take a few seconds to compile the .mod
files.
Stimuli
tab in the right menu.Record voltage
and Inject current
.Park_2019.swc
). Use the Step
field on the right to fine-tune the spinner's step.Record voltage
switch.Simulation
tab of the left menu.Membrane
tab in the right menu.gbar_na
, using the Parameter
dropdown widget. The distribution will be rendered on the Graph plot.Channels
button on top of the right menu. This will open a new menu for exploring channel kinetics.Channel
dropdown widget. Plots with channel activation/inactivation curves will appear in the workspace.Standardize
button to standardize the channel model. Note that standardization applies only to voltage-gated channels.Morphology
tab in the right menu.Stimuli
tab of the right menu.Reduce
button..swc
file.Stimuli
tab in the right menu.Synaptic type
and the number of synapses (N syn
), then click on the Add synapse group
button.DendroTweaks is currently undergoing active development. While we strive for stability, there may still be some issues that arise. If you encounter any problems in the online version, please try reloading the page and starting over. If you encounter any problems running the app locally, we recommend restarting the Bokeh server. To do this, stop the server from the console using Ctrl + C and then restart it with the following command:
bokeh serve --show app
For any server-related issues, please consult the official Bokeh documentation for additional information.
For support and suggestions, please contact us at
August, 2024