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.1.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.1-py3-none-any.whl (161.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fstg_toolkit-1.2.1.tar.gz
Algorithm Hash digest
SHA256 f5ab079de9ba6af305ef0dc02b501cee8cb22aba340ee22790e6a3dea001f6f1
MD5 073ccff2e173ea65b5d644b2d4863b17
BLAKE2b-256 81481d5de63870c91408c96678dcff9fce9465af412bc55cafd59f38fba63cb9

See more details on using hashes here.

Provenance

The following attestation bundles were made for fstg_toolkit-1.2.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: fstg_toolkit-1.2.1-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.12

File hashes

Hashes for fstg_toolkit-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 09929e7651eb41facfe467aaed20d98095edc49c3bdd31529f6da61da84733e1
MD5 36c087dcb83d7518f3e19df526159cb6
BLAKE2b-256 a2f6167e5b658ad97b3b8b888b9c00333ea8d5ef6fddd4595df268579b6f25ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for fstg_toolkit-1.2.1-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