StochSS / stochss

StochSS - Software as a Service for modeling, simulation, inference and analysis of biochemical models. https://live.stochss.org
http://www.stochss.org
GNU General Public License v3.0
23 stars 21 forks source link

StochSS: Software as a service for simulation-driven investigations of stochastic biochemical models

StochSS provides advanced tools for simulating and analyzing biochemical systems as Software as a Service. StochSS supports a wide range of model types ranging from continuous ODEs to discrete (spatial) stochastic simulations as well as advanced model analysis workflows.

Try out StochSS Live!

Why use StochSS

StochSS provides both an easy-to-use UI for constructing biochemical models as well as intuitive UIs for the most common model analysis tools such as visualization of results, parameter sweeps and parameter inference. StochSS is built on top of Jupyter Hub, and this lets you seemlessly switch between UI representations and Notebooks exposing the full backend API. In this way a user can benefit from the best of graphical representations with a clear upgrade path to modeling as code. For this reason, StochSS is also uniquely suited for the computational biologist starting out with mathematical modeling of biochemical systems.

StochSS is a software project involving several leading research groups in computational systems biology. We welcome collaborators to help expand the capabilities of StochSS. Read more about the project at www.stochss.org.

StochSS is intended to be used as Software as a Service via StochSS Live!. The following instructions can help you set up your own local development environment or deploy your own instance as SaaS.

Deploying your own Single-User StochSS Instance

Requirements

At the moment StochSS development on Windows is not supported. You can try using Make for Windows, but this is untested!

Quickstart

Setup

Add a python dependency

Use requirements.txt to add Python dependencies that will be installed into the StochSS docker container.

Deploying Multi-User StochSS

StochSS uses JupyterHub as the basis for the multi-user deployment. See their documentation for more details on configuring the JupyterHub environment.

Setup

[
    {
        "message": "StochSS Live! will be down for scheduled maintenance on __DATE__ from __START__ to __END__",
        "start": "Sep 26, 2022  14:00 EST",
        "end": "Sep 26, 2022  18:00 EST",
        "style": "info"
    },
    {
        "message": "StochSS Live! will be down for scheduled maintenance from"
    },
    {
        "message": "__DATE__ __START__ to __DATE__ __END__",
        "start": "Sep 26, 2022  14:00 EST",
        "end": "Sep 27, 2022  14:00 EST",
        "style": "warning"
    },
    {
        "message": "StochSS Live! is down for scheduled maintenance",
        "style": "background-color: rgba(160, 32, 240, 0.5) !important;"
    }
]

Run Locally

To run JupyterHub locally run make hub and go to http://127.0.0.1:8000/ .

Set Up A Staging Server

To set up the staging environment you'll need to set up Google OAuth for your instance. Once you're set up, you'll need to put your OAuth credentials in jupyterhub/secrets/.oauth.staging.env. Do not wrap these environment variables in quotes!

Example oauth file:

OAUTH_CALLBACK=https://staging.stochss.org/hub/oauth_callback
CLIENT_ID=8432438242-32432ada3ff23f248sf7ds.apps.googleusercontent.com
CLIENT_SECRET=adfsaf2327f2f7taafdsa34

After your oauth credentials are setup, run these commands:

make build
make build_hub
make run_hub_staging

Set Up A Production Server

Similar to staging, except you'll need the correct Google OAuth credentials set in jupyterhub/secrets/.oauth.prod.env.

Then:

make build
make build_hub
make run_hub_prod