Package: BrainNetTest 0.2.2

BrainNetTest: Hypothesis Testing for Populations of Brain Networks

Non-parametric hypothesis testing for populations of brain networks represented as graphs, following the L1-distance ANOVA framework of Fraiman and Fraiman (2018) <doi:10.1038/s41598-018-23152-5>. The package builds on this nonparametric graph-comparison framework, extending it with procedures for edge-level inference and identification of the specific connections driving group differences. In particular, it provides utilities to compute central (mean) graphs, pairwise Manhattan distances between adjacency matrices, the group test statistic T and its permutation p-value, and a fast permutation procedure to identify the critical edges that drive between-group differences. Helper functions to generate synthetic community-structured graphs and to visualise brain networks with communities are also included.

Authors:Maximiliano Martino [aut, cre], Daniel Fraiman [aut]

BrainNetTest_0.2.2.tar.gz
BrainNetTest_0.2.2.zip(r-4.7-any)BrainNetTest_0.2.2.zip(r-4.6-any)BrainNetTest_0.2.2.zip(r-4.5-any)
BrainNetTest_0.2.2.tgz(r-4.6-any)BrainNetTest_0.2.2.tgz(r-4.5-any)
BrainNetTest_0.2.2.tar.gz(r-4.7-any)BrainNetTest_0.2.2.tar.gz(r-4.6-any)
BrainNetTest_0.2.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
BrainNetTest/json (API)

# Install 'BrainNetTest' in R:
install.packages('BrainNetTest', repos = c('https://mmaximiliano.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/mmaximiliano/brainnettest/issues

On CRAN:

Conda:

4.70 score 10 scripts 515 downloads 13 exports 11 dependencies

Last updated from:8617ba4054. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK120
source / vignettesOK226
linux-releaseOK158
macos-releaseOK136
macos-oldrelOK148
windows-develOK57
windows-releaseOK69
windows-oldrelOK66
wasm-releaseOK93

Exports:compute_central_graphcompute_distancecompute_edge_frequenciescompute_edge_pvaluescompute_test_statisticgenerate_category_graphsgenerate_community_graphgenerate_random_graphget_critical_nodesglobal_testidentify_critical_linksplot_critical_edgesrank_edges

Dependencies:clicpp11glueigraphlatticelifecyclemagrittrMatrixpkgconfigrlangvctrs

Generating and Analyzing Brain Networks with Community Structures
Overview | Generating a single community-structured graph | Visualising the network | Simulating populations of graphs | Global test statistic | Identifying critical edges | Critical nodes | Visualising the result | References

Last update: 2026-09-15
Started: 2025-09-10

Introduction to BrainNetTest
Overview | Installation | A minimal example | Generating random graphs | Central graph and Manhattan distance | The group test statistic T | The global test | Critical edges | References

Last update: 2026-09-15
Started: 2025-09-10