Skip to main content

Installation Guide

Hardware Requirements

Statescope is designed to scale from lightweight demo usage to large cohort-level Bayesian analyses. Performance depends strongly on sample size, parallelization strategy, and GPU VRAM availability.

Small-scale data (tutorials, testing, serial jobs)

  • Sample size: ~50 samples
  • CPU: 1–4 cores
  • Memory: 8–16 GB RAM
  • GPU: optional (small VRAM sufficient)

Medium-scale data (hundreds of samples)

  • CPU: 16–32 threads
  • Memory: 64–128 GB RAM
  • GPU: optional but recommended

Large-scale data (≥1,000 samples, full Bayesian optimization)

  • CPU: 32–64 threads (Xeon / EPYC class, ≥2.6 GHz)
  • Memory: 128 GB RAM or more
  • GPU (recommended):
    • NVIDIA A100 / A40 / RTX 3090 / H100
    • ≥40 GB VRAM strongly recommended

GPU acceleration typically provides a 6–7× speed-up compared to CPU-only execution
(e.g. 3 minutes on GPU vs ~20 minutes on CPU).

Operating System Requirements

Statescope is primarily tested on Linux-based systems:

  • Ubuntu 20.04 / 22.04 (recommended)
  • CentOS 7 / Rocky Linux 8+

macOS and Windows (via WSL) may work but are not officially benchmarked.


Installation

Python Installation

Statescope can be installed directly via pip.
A Conda environment is not required, but can be used if desired.

pip install Statescope

Requirements

  • Python ≥ 3.9
  • pip < 23.24 (tested with pip 23.23)

Running a Demo Script

A basic demo notebook is provided in the tutorial folder.

After installation, launch:

jupyter notebook tutorial/BasicTutorial.ipynb

Optional: Installing Conda

If you choose to use Conda and do not have it installed:

  1. Visit https://docs.conda.io/en/latest/miniconda.html
  2. Download the installer for your OS
  3. Follow the installation instructions

Verify installation:

conda --version