Skip to content

Fit omics batch, covariate, and smoking corrections on train only - #133

Merged
cornelislouisa merged 1 commit into
mainfrom
louisa/omics-train-only-corrections
Sep 12, 2026
Merged

Fit omics batch, covariate, and smoking corrections on train only#133
cornelislouisa merged 1 commit into
mainfrom
louisa/omics-train-only-corrections

Conversation

@cornelislouisa

Copy link
Copy Markdown
Collaborator

Summary

  • Hub pin moves to 056dfdc4… (uncorrected matrices + sidecars). MoTrPAC covariates, AddNeuroMed ComBat, and smoking promoter-probe pick + median-center now fit on train and transform val/test.
  • Parkinson k-fold defaults to grouping=batch so hybridization-date batches stay unmixed. Smoking full_num_nodes is the TSS probe matrix; gene pick happens after the split.
  • Stacked on louisa/omics-kfold because corrections run after the new split.

Test plan

  • pytest tests/data/test_corrections.py tests/data/test_parkinsons_geo_meta.py tests/data/test_dataset_config_consistency.py
  • python -m ogbench dataset=motrpac model=gcn
  • python -m ogbench dataset=addneuromed model=gcn
  • python -m ogbench dataset=smoking model=gcn
  • python -m ogbench dataset=parkinsons model=gcn dataset.split_params.split_type=k-fold dataset.split_params.data_seed=0

Pin the Hub to uncorrected matrices plus sidecars, and keep Parkinson hybridization batches unmixed in k-fold.

Co-authored-by: Cursor <cursoragent@cursor.com>
Base automatically changed from louisa/omics-kfold to main September 12, 2026 02:23
@cornelislouisa
cornelislouisa merged commit 26a7317 into main Sep 12, 2026
3 checks passed
@cornelislouisa
cornelislouisa deleted the louisa/omics-train-only-corrections branch September 12, 2026 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants