Skip to content

Fix #143: Improve GrimAge error messages for missing metadata #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marcbal77
Copy link
Collaborator

Replace cryptic "Input X contains NaN" errors with clear, actionable guidance that helps users resolve missing metadata issues.

Changes:

  • Add specific validation for missing age/sex columns
  • Detect NaN sex values and suggest SexEstimation model (Seths awesomeness)
  • Improve error messages for missing methylation data
  • Guide users to existing biolearn tools for solutions

Fixes #143

Replace cryptic "Input X contains NaN" errors with clear, actionable
guidance that helps users resolve missing metadata issues.

Changes:
- Add specific validation for missing age/sex columns
- Detect NaN sex values and suggest SexEstimation model (Seths awesomeness)
- Improve error messages for missing methylation data
- Guide users to existing biolearn tools for solutions

Fixes bio-learn#143
@marcbal77
Copy link
Collaborator Author

Investigating further, might need to run tests after #154 is merged and verify tests are passing or not.

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.

This looks good. Can you also add a check for if there are any samples in the methylation matrix that do not have a matching metadata entry? This caused an issue for a user.

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.

GrimAgeV2 with missing metadata values
2 participants