Skip to main content
fSTG Toolkit

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

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fstg_toolkit-1.3.0.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fstg_toolkit-1.3.0-py3-none-any.whl (1.7 MB view details)

Uploaded Python 3

File details

Details for the file fstg_toolkit-1.3.0.tar.gz.

File metadata

  • Download URL: fstg_toolkit-1.3.0.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for fstg_toolkit-1.3.0.tar.gz
Algorithm Hash digest
SHA256 521c7a1bf67cae5bf05861f77a09ddd34f64079c910891722765f135c9bf1db0
MD5 049d718f6fc54f23122336a0f4e1a389
BLAKE2b-256 44a88215fdb070fdef93d60cfd8e30e4066c4608ee7642c8a33f466849b4ea04

See more details on using hashes here.

Provenance

The following attestation bundles were made for fstg_toolkit-1.3.0.tar.gz:

Publisher: publish.yml on ICube-Medical-Image-Computing/fstg_toolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fstg_toolkit-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: fstg_toolkit-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for fstg_toolkit-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8efc09e0e51a72cc498db05466d4abf670282d57c05334a4175cda47a68c87c3
MD5 a36685e96da13d2a6abb8f277e1aa657
BLAKE2b-256 aee220abf07eb37896f1c8c46511da1c486157aabfacb6ab7675256f1d8ddef9

See more details on using hashes here.

Provenance

The following attestation bundles were made for fstg_toolkit-1.3.0-py3-none-any.whl:

Publisher: publish.yml on ICube-Medical-Image-Computing/fstg_toolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 files

1.2.1

2 files

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

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