Skip to main content

Aan Open-Source Software for Spatio-Temporal Graph Analysis of fMRI data.

Project description

fSTG Toolkit

PyPI - Python Version CI 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.

Project details


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.2.0.tar.gz (114.3 kB 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.2.0-py3-none-any.whl (161.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fstg_toolkit-1.2.0.tar.gz
  • Upload date:
  • Size: 114.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fstg_toolkit-1.2.0.tar.gz
Algorithm Hash digest
SHA256 597e3a1fdfea33b9116bbfabaab7d645198b39dddb2fe231e9414ea49a8b6905
MD5 619b2d172f83ce848aa197f5da541af3
BLAKE2b-256 897c517c094b6882cde06f6b6438287956ac439f3666424203b6eb0f82e0c8dc

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on julienpontabry/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.2.0-py3-none-any.whl.

File metadata

  • Download URL: fstg_toolkit-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 161.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fstg_toolkit-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47afeceabfabcaeab44edf4ee931d6e37cd363376ce7cb29fb66250fdebc6931
MD5 2e2b49025ed4f0d8da11c92c24809f5c
BLAKE2b-256 383b7d9946f5d46161b03dc567e2475bf2b6b6fcf58e237bc5446414afc955ba

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on julienpontabry/fstg_toolkit

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page