Fit omics batch, covariate, and smoking corrections on train only - #133
Merged
Conversation
Pin the Hub to uncorrected matrices plus sidecars, and keep Parkinson hybridization batches unmixed in k-fold. Co-authored-by: Cursor <cursoragent@cursor.com>
johmathe
approved these changes
Sep 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
056dfdc4…(uncorrected matrices + sidecars). MoTrPAC covariates, AddNeuroMed ComBat, and smoking promoter-probe pick + median-center now fit on train and transform val/test.grouping=batchso hybridization-date batches stay unmixed. Smokingfull_num_nodesis the TSS probe matrix; gene pick happens after the split.louisa/omics-kfoldbecause 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.pypython -m ogbench dataset=motrpac model=gcnpython -m ogbench dataset=addneuromed model=gcnpython -m ogbench dataset=smoking model=gcnpython -m ogbench dataset=parkinsons model=gcn dataset.split_params.split_type=k-fold dataset.split_params.data_seed=0