Skip to content

SpectralBrain 0.0.7

Choose a tag to compare

@rdneuro rdneuro released this 03 Oct 13:14
· 5 commits to main since this release
90ecb05

SpectralBrain 0.0.7

Bug-fix release from a full audit of the library (Opus 5.5 is awesome, baby!): about 120 bugs and silent failures fixed, plus the new volume→mesh pipeline. About 170 new regression tests.

Fixed

  • Spectral: the anisotropic Laplacian is now symmetric and min_curvature no longer returns the normal; Finsler conductivity follows the requested direction; Hamiltonian spectra keep negative eigenvalues; functional maps are full rank; Bates/SGW descriptors no longer depend on eigenvector sign; persistent Laplacian, Betti curves, NetLSD and FGSD fixed.
  • Core: the Laplacian cache is keyed on the method; shape_index stays in [-1, 1] and mean curvature is signed; degenerate faces are removed (weld_mesh()); marching_cubes binarises labels and orients faces outward; schaefer_to_yeo is exact when given parcel names; set_log_level works.
  • IO: SynthStrip/FastSurfer no longer crash; segmentation runs in native space; MNI atlases require a registration; face orientation is correct for any affine; GIfTI labels are read by key.
  • Statistics: eigenstrapping, rewiring and phase randomisation produce valid nulls; TFCE handles the positive and negative tails separately; FDR and correlation tolerate NaN; ComBat rewritten (combat_apply); GP z-scores include observation noise; Bayesian models report diagnostics (SamplingWarning).
  • Viz: multi-view panels use explicit RAS cameras; savefig keeps names like t0.5; shared colour limits for comparisons.

Breaking changes

  • parcellate() requires atlas_reg= for MNI-space atlases.
  • load_group raises on duplicate subject IDs.
  • NormativeModel harmonised with ComBat needs site= when scoring.
  • Segmentation runs in native space by default (segment_space="template" restores the old behaviour).
  • compute_functional_map default regularize is now 1e-8.

Results from eigenstrapping, TFCE, anisotropic descriptors, Bates/SGW, normative z-scores and edge rewiring may change — rerun them on this version.

Full changelog: see CHANGELOG.md.