This release is a pre-release and may not be stable for production use.
BrainNet Graph
Development preview 0.3.0.dev1, based on the PyPI 0.2.2 source distribution. This is an alpha release, not a full reproduction of all listed methods.
The source-aware API indexes 63 methods: 24 local formula-level implementations and 39 reference-only guides. A reference-only entry is not an implemented estimator. Each describe() record includes papers, author-code findings, graph readouts, and limitations. The installed package also includes METHODS_GUIDE.md.
Install this explicit preview with python -m pip install brainnet-graph==0.3.0.dev1. Python 3.10 or newer is required.
from brainnet_graph import BrainNetGraph
library = BrainNetGraph()
graph = library.compute("pearson_correlation", X)
graphs = library.compute("sliding_window_pearson", X, window_length=30)
guide = library.compute_or_guide("fbnetgen")
card = library.describe("fbnetgen")
Inputs are finite real arrays with shape (T, N). Graph axes always preserve input ROI order. Timepoint, state, frequency, subject and layer axes are not interchangeable. Algorithms keep their native diagonals, signs, and directions; distance matrices remain distances. Correlation methods reject constant ROIs. No automatic filtering, thresholding, symmetrization or training occurs.
Core dependencies are NumPy and SciPy. Legacy brainnet_graph.methods, construction, and the construct-graph command require the legacy extra: python -m pip install "brainnet-graph[legacy]==0.3.0.dev1". Their code is unchanged from 0.2.2; compatibility is source-level only and the heavy legacy environment has not been tested in this preview. The old cross-correlation function equals Pearson, old Granger returns p-values, and old Patel/generalised-synchronisation implementations have unresolved formula mismatches. Use the catalogue before scientific use.
This package retains the project's MIT licensing. Third-party implementations and model weights are not bundled; linked repositories retain their own licenses. Public availability of a repository is not permission to redistribute it.
The current project HOFC file is copied unchanged under reference/project_hofc.py. Its dHOFC returns an edge-space matrix. The new ROI API separately implements Zhao 2020 Eq. 5 and requires paper_version="zhao2020_roi"; it does not substitute the low-order intermediate or silently alter the old function. Project aHOFC is generally asymmetric and is labeled as the project variant.
The independent brainnet_graph.reference.fbnetgen.FBNetGenAdapter accepts an already loaded, trusted official model and training normalization. Its NumPy preprocessing has been tested; its PyTorch forward path has not. No weights or upstream FBNetGen code are bundled.
Metadata
Release files for brainnet-graph 0.3.0.dev1
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 | Actions |
|---|---|---|---|---|
| brainnet_graph-0.3.0.dev1.tar.gz | 101.2 kB | Without provenance | Details for brainnet_graph-0.3.0.dev1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| brainnet_graph-0.3.0.dev1-py3-none-any.whl | Python 3 | none | any | Details for brainnet_graph-0.3.0.dev1-py3-none-any.whl |
Total release size: 205.9 kB
Release files / brainnet_graph-0.3.0.dev1.tar.gz
| Download URL | brainnet_graph-0.3.0.dev1.tar.gz |
|---|---|
| Size | 101.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1bbe299cdb4b7f399b241f9adab8272286a792479ef6b6a255500169ecbe27fd
|
|
BLAKE2b-256 checksum How to use checksums |
a079bce163b26c30cef0bee80ad795dbf2da3b9881029e23e88b4cd5a12a0ea4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Release files / brainnet_graph-0.3.0.dev1-py3-none-any.whl
| Download URL | brainnet_graph-0.3.0.dev1-py3-none-any.whl |
|---|---|
| Size | 104.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d10e6e14481ae903cac6fdc497d1d6796f4ef0ecbca18553ce77750091188b39
|
|
BLAKE2b-256 checksum How to use checksums |
4bb9ff967c2daa60017abdbe02444ffaa5e736cc2d578989711a84fef2fb170f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Security for brainnet-graph 0.3.0.dev1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.