Skip to main content
pydfc Logo https://zenodo.org/badge/DOI/10.5281/zenodo.10161176.svg PyPI Package

pydfc

An implementation of several well-known dynamic Functional Connectivity (dFC) assessment methods.

Installation

Simply install pydfc using the following steps:

conda create --name pydfc_env python=3.11
conda activate pydfc_env
pip install pydfc

Examples

The following example scripts illustrate how to use the toolbox:

  • examples/dFC_methods_demo.py Demonstrates how to load data and apply each of the implemented dFC methods individually.

  • examples/multi_analysis_demo.py Demonstrates how to apply multiple dFC methods on a dataset and compare their results.

For more details about the implemented methods and the comparison analysis, see our paper:

On the variability of dynamic functional connectivity assessment methods

Mohammad Torabi, Georgios D Mitsis, Jean-Baptiste Poline, GigaScience, Volume 13, 2024, giae009.

AI-Assisted Tutorial Experience (Optional)

In addition to the example scripts and documentation, pydfc provides optional AI-assisted learning workflows that can help you explore the toolbox, understand dynamic functional connectivity methods, and generate minimal working examples.

If you are unsure which dFC method fits your analysis, or you are not sure how to start your journey with dFC assessment, we highly encourage trying the AI-assisted tutorial experience. It is designed to combine guidance from both the codebase and our paper, so you can move from first steps to informed method choices with more confidence.

These options are entirely optional and do not affect the core functionality of the toolbox.

Using GitHub Copilot Prompts

If you use GitHub Copilot in VS Code or Visual Studio, you can access guided prompts that walk you through installing pydfc, loading demo data, and running key dFC methods.

The prompt set now includes a paper-grounded deep mode for method questions, so users can ask about assumptions, implementation details, expected behavior, and pros/cons with answers grounded in:

  • docs/DFC_METHODS_CONTEXT.md

  • docs/PAPER_KNOWLEDGE_BASE.md

How to use:

  1. Open the repository in VS Code.

  2. Open Copilot Chat.

  3. Type / and run one of the available prompts:

    /00_prompts_index
    /01_install
    /02_choose_method
    /03_state_free_quickstart
    /04_state_based_quickstart
    /05_paper_method_qa
    /06_troubleshoot
  4. Start with /00_prompts_index if you want a fast routing guide to choose the best prompt for your goal.

What is new in this prompt experience:

  • /02_choose_method now appears right after install, so users can pick a method path early.

  • /05_paper_method_qa is dedicated to paper-based method Q&A.

  • /06_troubleshoot is now the final step in the sequence.

  • Method answers are configured for deeper, assumption-first explanations and include citation guidance for Torabi et al., 2024 when relevant.

These prompts provide a structured, step-by-step tutorial experience and generate copy-paste code tailored to common workflows.

If you have Copilot access, we strongly recommend this interactive path for a friendly and practical onboarding experience.

Using Codex, Claude, or Other AI Coding Assistants

If you use Codex, Claude, or another AI coding assistant, the repository includes guidance files designed for AI-assisted workflows:

  • docs/SKILL.md — comprehensive usage guidance and tutorial flow

  • agents.md — concise agent instructions (if present)

  • docs/DFC_METHODS_CONTEXT.md — assumptions, interpretation, and method comparison principles

  • docs/PAPER_KNOWLEDGE_BASE.md — paper-grounded implementation notes, expected behavior, and pros/cons

You can point your AI assistant to these files or ask it to follow them when guiding you through pydfc.

Example prompt:

Use the instructions in docs/SKILL.md to guide me through a minimal PydFC workflow.

Using Any LLM Chat (Copy-Paste Method)

If you do not use Copilot, Codex, or Claude, you can still benefit from AI guidance.

Steps:

  1. Open docs/SKILL.md.

  2. Copy its contents.

  3. Paste it into your preferred LLM chat (e.g., ChatGPT, Claude, Gemini).

  4. Ask questions such as:

    • “Guide me through the state-free quickstart.”

    • “Which dFC method should I use for my dataset?”

    • “Generate a minimal Sliding Window example.”

This provides a portable, copy-paste tutorial experience.

Notes on Privacy and Offline Use

  • The AI-assisted workflows described above operate within your chosen AI environment.

  • No data is sent by pydfc itself.

  • Users working with sensitive data should follow their institutional policies when using external AI services.

Release files for pydfc 1.0.8

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

Source distribution (sdist)

Source distribution for pydfc 1.0.8
File Size Uploaded
pydfc-1.0.8.tar.gz 240.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydfc 1.0.8
File Interpreter ABI Platform
pydfc-1.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 305.8 kB

Release files / pydfc-1.0.8.tar.gz

Download URL pydfc-1.0.8.tar.gz
Size 240.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8c25e2e2daac847ff6040ff131911c3b122f70e48c319550b5e5a7b29847bd73
BLAKE2b-256 checksum
How to use checksums
d91d91313c2f92c0d75bc3e6e3af810be66d8c3565d48a8d9815044d36e01447
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 25, 2026.

Transparency log

Release files / pydfc-1.0.8-py3-none-any.whl

Download URL pydfc-1.0.8-py3-none-any.whl
Size 65.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac208a2438dffff09b092e27368f7cb8d9c0c56adda91f86df3f7961b387702a
BLAKE2b-256 checksum
How to use checksums
53be57a92dc399184ae271b1f0d4d5a7ffcb5723130cfeb2712d8361b6e0ea7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.8 This release

2 release files

1.0.7

2 release files

1.0.4

2 release 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