Skip to content

Comments

fix: Validate required CpGs for linear methylation models (#123)#192

Merged
marcbal77 merged 3 commits intobio-learn:masterfrom
Sprengmeister-dev:fix/missing-cpg-validation
Feb 17, 2026
Merged

fix: Validate required CpGs for linear methylation models (#123)#192
marcbal77 merged 3 commits intobio-learn:masterfrom
Sprengmeister-dev:fix/missing-cpg-validation

Conversation

@Sprengmeister-dev
Copy link

Summary

  • Add explicit validation for required CpG sites in LinearMethylationModel
  • Raise a clear, actionable error when CpGs are missing (with a short preview)
  • Update model tests to expect this behavior when required CpGs are absent

This fixes #123

@marcbal77 marcbal77 self-requested a review January 6, 2026 06:06
@sarudak
Copy link
Member

sarudak commented Jan 13, 2026

@Sprengmeister-dev This PR looks good to me but needs to have formatting run on it.

@marcbal77 marcbal77 removed their request for review January 14, 2026 17:09
@marcbal77 marcbal77 force-pushed the fix/missing-cpg-validation branch from 69501f5 to 3ae0e5c Compare February 17, 2026 04:44
@marcbal77
Copy link
Member

LGTM — rebased onto master, ran make format and make test. Also added a MiAge test tolerance for cross-platform float drift that was causing CI failures related to the recently merged MiAge PR. Ready to merge.

Copy link
Member

@sarudak sarudak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marcbal77 marcbal77 merged commit 2833fdf into bio-learn:master Feb 17, 2026
1 check passed
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.

handling missing CpGs for 'AD_Bahado-Singh'

4 participants