Skip to content

Conversation

@kal26
Copy link
Contributor

@kal26 kal26 commented Dec 5, 2025

This PR adds comprehensive file existence checks for all input files and improves error handling.

Changes

  • File existence checks: Added checks for all file types (phenotype, covariate, genotype, sumstat, column mapping, and LD metadata files)
  • Error instead of warnings: Changed from warnings to errors when files are missing to catch path issues early
  • Fixed genotype file check: Now properly checks for .bed/.bim/.fam or .pgen/.pvar/.psam files instead of the base filename
  • Better error messages: Error messages now clearly show which files are missing along with their associated condition/study names
  • Region-based filtering: Filter out phenotypes without data for specific regions before attempting loading

Benefits

  • Catches file path errors immediately instead of failing later
  • Clear error messages make it easy to identify which files are missing
  • Prevents silent failures when files don't exist

@kal26 kal26 force-pushed the feat/filter-empty-phenotypes-by-region branch from b6bb933 to 922e236 Compare December 19, 2025 22:04
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.

1 participant