BrainFC
fMRI → ROI time series → functional connectivity → matrix, eight-view and interactive 3D reports.
BrainFC is a Python library with a command-line interface and a local graphical interface. Both interfaces use the same processing core. The default installation includes the GUI and an offline API manual. Python 3.11 or newer is required; ordinary users do not need Node.js.
Install and launch
pip install brainfc
brainfc serve
The interface opens at http://127.0.0.1:8766. Choose the built-in demo to generate synthetic NIfTI inputs and a complete report without downloading participant data. The offline manual is available at /reference/ and the HTTP API schema at /docs.
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
- Quickstart
- Complete Python API
- Python usage guide
- Input formats and processing contract
- Source code and issues
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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file brainfc-0.3.0.tar.gz.
File metadata
- Download URL: brainfc-0.3.0.tar.gz
- Upload date:
- Size: 4.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
501c6967aaba5aba9d8eaf6a89befa0dafa2c068443fefed2c092a6d023d94a8
|
|
| MD5 |
52335830a645a68c0513123177c8ece3
|
|
| BLAKE2b-256 |
16e0deda42b26bf1752407ec6b12d8b0d4d6daf68a6ba69230ff06b7f56c391d
|
Provenance
The following attestation bundles were made for brainfc-0.3.0.tar.gz:
Publisher:
publish.yml on hanxiangmin/brainfc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
brainfc-0.3.0.tar.gz -
Subject digest:
501c6967aaba5aba9d8eaf6a89befa0dafa2c068443fefed2c092a6d023d94a8 - Sigstore transparency entry: 2802555455
- Sigstore integration time:
-
Permalink:
hanxiangmin/brainfc@38038ef134408b4c40136c468c428b78254adf33 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/hanxiangmin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@38038ef134408b4c40136c468c428b78254adf33 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file brainfc-0.3.0-py3-none-any.whl.
File metadata
- Download URL: brainfc-0.3.0-py3-none-any.whl
- Upload date:
- Size: 940.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0baebc68c25271903779fb707ca8ef52dbc640371f0f1658f65b67fd32964506
|
|
| MD5 |
154b83c11614afd161e86832d35b8e56
|
|
| BLAKE2b-256 |
9f118e7f81fc29404b9ffbfa76f6c75c6e7343d47c7985ea1c2316b1f373b05b
|
Provenance
The following attestation bundles were made for brainfc-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on hanxiangmin/brainfc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
brainfc-0.3.0-py3-none-any.whl -
Subject digest:
0baebc68c25271903779fb707ca8ef52dbc640371f0f1658f65b67fd32964506 - Sigstore transparency entry: 2802555607
- Sigstore integration time:
-
Permalink:
hanxiangmin/brainfc@38038ef134408b4c40136c468c428b78254adf33 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/hanxiangmin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@38038ef134408b4c40136c468c428b78254adf33 -
Trigger Event:
workflow_dispatch
-
Statement type: