Configuration Reference
IsoGraph uses dataclass-based typed configuration models in
isograph.workflow.config.
Command Configs
BenchmarkCommandConfigControls suite generation, backend selection, report locations, real-data freeze settings, and backend-specific config blocks. The default backend is"vae".FitCommandConfigControls fitting a prepared dataset bundle with any backend (baseline,latent,graph,vae,wgcna); the default backend is"vae".CompareCommandConfigControls report or snapshot comparison output paths.
Backend Configs
BaselineModelConfigSparse partial-correlation baseline with residualization and trait-association defaults.LatentModelConfigFactor Analysis denoising plus partial-correlation inference. Supports cross-validated or fixed component count selection.GraphModelConfigLatent model extended with graph-Laplacian smoothing.VaeModelConfigVariational autoencoder backend with early stopping, latent-dimension controls, and optional checkpoint output. See thehidden_dimdocstring for gene-count guidance.WgcnaModelConfigWGCNA backend wrapping R’sblockwiseModules. Configures soft-thresholding power, minimum module size, merge cut height, network type, and subprocess timeout.
Real-Data and Stability Configs
RealDataFreezeConfigPoints at the BrainSeq-style count and annotation tables used byfreeze-real.StabilitySelectionConfigControls alpha-grid search for real-data edge stability.
Default Config Files
The repository ships with these YAML entry points:
File |
Suite |
Backend |
|---|---|---|
|
|
|
|
— |
|
|
— |
— |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Use them as stable entry points and supply Hydra overrides after |
Multiplex-Specific Fields
VAE, graph, and latent configs can enable multiplex edge policies with:
allow_abundance_abundance— include abundance-abundance edges instead of requiring abundance-only genes to connect through switch-active genes.alpha_switch— threshold for switch-switch feature edges.alpha_switch_grid— optional grid used to select the switch threshold that avoids switch-switch giant components (the switch-channel counterpart ofalpha_abundance_grid).alpha_abundance— fixed threshold for abundance-abundance feature edges.alpha_abundance_grid— optional grid used to select the smallest abundance threshold that avoids merging baseline switch modules.
For very large multiplex fixtures, prefer a fixed alpha_abundance because grid
selection repeats the O(feature²) graph projection for each candidate threshold.
VAE Stability and Reliability Controls
VaeModelConfig exposes several opt-in fields (all off/neutral by default) for hard
cohorts. They are not set in configs/fit.yaml, so they take their dataclass defaults
unless you override them:
grad_clip_norm(defaultNone) — clips the global gradient norm before each optimizer step to tame early exploding-gradient steps. A divergence guard (non-finite validation loss → restore best checkpoint and stop) is always active regardless of this setting.residualize_composition(defaultFalse) — regressresidualize_covariatesout of each gene’s CLR composition before the switch PC1 is derived, instead of out of the collapsed switch score afterward. Robust to confounds that rotate a gene’s switch axis (e.g. 3′ degradation).switch_reliability_weighting(defaultFalse) — down-weight switch-switch edges by per-gene reliability so unreliable genes fall back to the abundance channel. Source is chosen withswitch_reliability_source:"degradation"(needsdegradation_covariate) or the covariate-free"estimability"(tuned byswitch_estimability_min_minor_usage).switch_reliability_floorandswitch_reliability_powershape the weight curve.grey_min_intra_degree(default0) — WGCNA-style grey-module rejection: iteratively drop genes whose intra-module degree is below thisk, leaving them unassigned.leiden_resolution(default5.0) — Leiden community-detection resolution; higher gives more, smaller modules. The data-driven giant-component cap is automatic (the formerleiden_max_giant_fracknob is deprecated).
Per-Fixture Overrides
All backends support per-fixture config overrides in BenchmarkCommandConfig:
fixture_model_overrides— baselinefixture_latent_overrides— latentfixture_graph_overrides— graphfixture_vae_overrides— vaefixture_wgcna_overrides— wgcna
Values are partial field dicts merged with dataclasses.replace before the fit.