Generates a collection of null networks by repeatedly shuffling the data (via permutation or bootstrap) and fitting a sparse Gaussian graphical model (SILGGM) within each label-defined group. Each iteration returns a named list of two igraph objects (one per group). Edge attributes include:
qval— BH-adjusted p-valuespval— p-values from precision-matrix inferencepcor— partial correlationssign— sign of partial correlation (+1 / -1)
Arguments
- dat
data.frame; p numeric feature columns + one label column.
- group_col
character; name of the label column (default
"phenotype").- inference_method
one of
c("D-S_NW_SL", "B_NW_SL").- shuffle_method
character; one of
c("permutation","bootstrap").- shuffle_iter
integer; number of null resamples (default 100).
- balanced
logical; only used when
shuffle_method = "permutation". IfTRUE, downsample to equal group sizes before permutation.- filter
character; one of
c("pval","fdr","none").- threshold
numeric; threshold for edge inclusion when
filter != "none".- n_cores
integer; number of cores parallel computing
- seed
integer; random seet