Skip to main content
fSTG Toolkit

PyPI - Python Version CI Coverage PyPI - Version PyPI - License Read the Docs DOI

fSTG Toolkit: an Open-Source Software for Spatio-Temporal Graph Analysis of fMRI data

Overview

fSTG Toolkit is an open-source software dedicated to longitudinal analysis of brain connectivity, modeling data as spatio-temporal graphs. It enables the study of dynamics and reorganization of brain regions, primarily using functional MRI (fMRI) data, but is also compatible with any type of connectivity data.

Current main features:

  • Building of spatio-temporal graphs from correlation matrices and region definitions.
  • Advanced graph metrics computation.
  • Interactive visualization of results via a web dashboard.
  • Simulation of connectivity patterns and sequences.
  • Frequent subgraph pattern mining via SPMiner integration.

Installation

Installation from PyPI

The easiest way to get started is to install the package from PyPI. Make sure you have a Python environment ready with a supported version (see the badge above), then run:

pip install fSTG-Toolkit

To install optional feature sets:

pip install "fSTG-Toolkit[dashboard]"   # web dashboard
pip install "fSTG-Toolkit[plot]"        # matplotlib plots
pip install "fSTG-Toolkit[frequent]"    # frequent pattern mining (requires Docker)
pip install "fSTG-Toolkit[dashboard,plot,frequent]"  # everything

Installation from Source

To install from source, create a new environment with the required Python and Poetry binaries. Using conda:

conda env create -n <env_name> -f environment.yml
conda activate <env_name>

Then in the project's root folder, install the dependencies:

poetry install

To install optional feature sets:

poetry install --extras dashboard   # web dashboard
poetry install --extras plot        # matplotlib plots
poetry install --extras frequent    # frequent pattern mining (requires Docker)
poetry install --all-extras         # everything

Quick Start

# Build graphs from a correlation matrix file and an areas CSV
python -m fstg_toolkit graph build -o my_graphs.zip areas.csv matrices.npz

# Compute graph metrics
python -m fstg_toolkit graph metrics my_graphs.zip

# Open the interactive dashboard
python -m fstg_toolkit dashboard show my_graphs.zip

The areas CSV must contain Id_Area, Name_Area, and Name_Region columns. Correlation matrices must be NumPy files (.npz or .npy) with shape (T, N, N).

Use --help on any command for full options:

python -m fstg_toolkit --help
python -m fstg_toolkit graph build --help

Full usage documentation, tutorials, and API reference are available at fstg-toolkit.readthedocs.io.

Illustration of the dashboard.

Community

  • Questions about using the toolkit? Ask in the discussions, in the Q&A category.
  • Found a bug? Open an issue with the bug report form.
  • Want to contribute? Bug fixes, new features, and documentation improvements are welcome: see CONTRIBUTING.md for the development setup, the test suites, and the pull request process.

Everyone taking part in the project is expected to follow the Code of Conduct.

License

The fSTG Toolkit is distributed under the CeCILL Free Software Agreement v2.1. See LICENSE for more information. The Multi-SPMiner sources bundled under src/fstg_toolkit/spminer/ are an exception: see src/fstg_toolkit/spminer/NOTICE.md for their provenance and status.

Metadata

Release files for fSTG-Toolkit 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fSTG-Toolkit 1.4.0
File Size Uploaded Provenance Actions
fstg_toolkit-1.4.0.tar.gz 1.6 MB With provenance Details for fstg_toolkit-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fSTG-Toolkit 1.4.0
File Interpreter ABI Platform Actions
fstg_toolkit-1.4.0-py3-none-any.whl Python 3 none any Details for fstg_toolkit-1.4.0-py3-none-any.whl

Total release size: 3.3 MB

Release files / fstg_toolkit-1.4.0.tar.gz

Download URL fstg_toolkit-1.4.0.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
760b9243ed2c73cd98c4ae16c5e815513ad7bc66f066a8a1688edd72f199cf66
BLAKE2b-256 checksum
How to use checksums
b3b9445855f483fdb08813d856d1b970045d3ccc9d22410e700f8553c7035c01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / fstg_toolkit-1.4.0-py3-none-any.whl

Download URL fstg_toolkit-1.4.0-py3-none-any.whl
Size 1.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1e7cc364d733554cc6532e2f1167fab066ab5511f9eaf493fd6959607985e552
BLAKE2b-256 checksum
How to use checksums
4784aa200ed97da91bd6a96c0187699a858e9fe2cd34f6be85f4b351ec454648
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for fSTG-Toolkit 1.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for fstg_toolkit-1.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page