Spin-based null model with maximum-overlap parcel reassignment. After rotating vertex coordinates, each original parcel is assigned the value of the rotated parcel with the most vertex overlap.
Usage
null_baum(
data,
coords,
parcellation,
n_perm = 1000L,
seed = NULL,
rotation = c("euler", "rodrigues")
)Arguments
- data
Numeric vector of brain map values.
- coords
List with
$lhand$rhmatrices of spherical coordinates (n x 3 each).- parcellation
Integer vector of parcel labels for all vertices.
0andNAindicate medial wall.- n_perm
Integer number of null permutations to generate.
- seed
Optional integer seed for reproducibility.
- rotation
Rotation generation method:
"euler"(ZYZ Euler angles, default, matches neuromaps Python) or"rodrigues"(Rodrigues axis-angle formula).
Value
A null_distribution object.