Skip to main content

BrainFC: functional connectivity, made visible

BrainFC

fMRI → ROI time series → functional connectivity → matrix, eight-view and interactive 3D reports.

Functional connectivity, brain graphs and native hypergraphs in one Python package, with a local GUI and complete API. Requires Python 3.11+.

Install and launch

pip install -U brainfc
brainfc serve

Choose 打开真实样例 to try the bundled rest01 example. No files or parameters to supply.

Python API

from brainfc import Config, extract_connectome

# A TSV with a header: rows are time points, columns are ROI signals.
result = extract_connectome(
    "signals.tsv",
    config=Config(detrend=False, standardize=False),
)
matrix = result.connectivity
result.save("results/run-001")

The destination must be new. For volume images, supply an integer-label atlas in the same explicitly named space and confirm that spatial preprocessing is complete. Filtering, confound regression and censoring must match the provenance of the input signals; the example above does not add temporal denoising.

Capabilities

  • Read supported NiBabel volume containers, CIFTI time series, paired GIFTI data/labels, and CSV/TSV/TXT/1D/NPY/NPZ/MAT tables (excluding MAT v7.3).
  • Extract ROI means; apply confound regression, temporal cleaning and censoring while retaining original frame indices.
  • Compute Pearson, Spearman or Ledoit-Wolf partial correlations, with a separate Fisher-z matrix.
  • Export arrays, tables, quality records, input fingerprints, figures and an offline interactive report.
  • Synchronize selected connections and display thresholds between the 3D viewer and eight anatomical views. Display filtering does not modify the complete signed matrix.

Raw DICOM/BIDS spatial preprocessing requires external dcm2niix/fMRIPrep. BrainFC provides command adapters; it does not implement that preprocessing itself. The complete external raw-data chain has not been validated in this release. This package does not provide disease diagnosis or cohort-level inference.

Documentation and source

Licensed under Apache-2.0. The 3D viewer is adapted from Hyper-Brain; BrainFC runs independently. Dataset and atlas licenses remain with their original providers.

Network analysis

Choose 进入网络分析 after extraction to explore graphs, native hypergraphs and network metrics. The matrix and ROI mapping transfer automatically.

from brainfc.network import AnalysisConfig

network = result.analyze_network(AnalysisConfig(k=5))

Network guide · Compatibility guide

Download files

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

Source Distribution

brainfc-0.4.0.tar.gz (8.9 MB view details)

Uploaded Source

Built Distribution

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

brainfc-0.4.0-py3-none-any.whl (3.8 MB view details)

Uploaded Python 3

File details

Details for the file brainfc-0.4.0.tar.gz.

File metadata

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

File hashes

Hashes for brainfc-0.4.0.tar.gz
Algorithm Hash digest
SHA256 de845b21248bae7d82993b0d1546e54584da3a874659dc2c019d3c1f715eea79
MD5 d45740e189b9d62c7b84788bb6035a5a
BLAKE2b-256 82e18189e56337919417a6b2d846f6a3184864f03c9a246740949b9bf4fe9afb

See more details on using hashes here.

Provenance

The following attestation bundles were made for brainfc-0.4.0.tar.gz:

Publisher: publish.yml on hanxiangmin/brainfc

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

File details

Details for the file brainfc-0.4.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for brainfc-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6573ebe5e86201c63ae368f7ceab9fbe377cd186a3cb5b027cb33bad1edaca18
MD5 592c32cc3074ba16e0d24be96a48d4e9
BLAKE2b-256 85adabf4ac278e3b0b73f4c0e8f5112674ae4b862a67bbdd8be0506e94dc68bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for brainfc-0.4.0-py3-none-any.whl:

Publisher: publish.yml on hanxiangmin/brainfc

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

Release history Release notifications | RSS feed

0.5.1

2 files

0.5.0

2 files

0.4.1

2 files

This release

0.4.0 This release

2 files

0.3.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