BrainFC
Resting-state fMRI (rs-fMRI) → functional connectivity → brain networks and hypergraphs.
Neuroimaging, connectome visualization and network analysis in one Python package, with a local GUI and complete API. Requires Python 3.11–3.13.
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 BOLD + T1 and supported DICOM series have an in-process Python preprocessing route with ANTsPy, followed by visual QC and connectivity extraction. No MATLAB or Docker is required. Susceptibility-distortion correction is not implemented. 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.
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))
Metadata
Release files for brainfc 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| brainfc-0.5.1.tar.gz | 9.0 MB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| brainfc-0.5.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.8 MB
Release files / brainfc-0.5.1.tar.gz
| Download URL | brainfc-0.5.1.tar.gz |
|---|---|
| Size | 9.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf455cb05cecd2fe8c8bdfe2a0d6758b6c54d3be7241113449c65ecc5286331c
|
|
BLAKE2b-256 checksum How to use checksums |
8bc8fae45d3e89bf82b16e5b310c41f36b5f2dcc35f8ad2f1809463cf14e3cca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 12, 2026.
Transparency logRelease files / brainfc-0.5.1-py3-none-any.whl
| Download URL | brainfc-0.5.1-py3-none-any.whl |
|---|---|
| Size | 3.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5439dc6b40d1847f935ec8f627169774bfbfa77bd189ad2c5eb1cae20fb27523
|
|
BLAKE2b-256 checksum How to use checksums |
cfca7ab0b6b2d895a693ee924e4cd6c4fe524ca224525902ceb7bd619aa0d3f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 12, 2026.
Transparency logSecurity for brainfc 0.5.1
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for brainfc-0.5.1.tar.gz
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 Sep 12, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.