-
Notifications
You must be signed in to change notification settings - Fork 3
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
Tidy up: delete unused target variants module #47
Merged
Conversation
This file contains 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
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## fix-nonadditive #47 +/- ##
===================================================
+ Coverage 89.18% 89.19% +0.01%
===================================================
Files 40 39 -1
Lines 2320 2249 -71
===================================================
- Hits 2069 2006 -63
+ Misses 251 243 -8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
nebfield
added a commit
that referenced
this pull request
Oct 7, 2024
* add pydantic dependency * implement pydantic model drafts * split models into CatalogScoreVariant and ScoreVariant * fix doctests * refactor to use a DictWriter * fix doctest imports * refactor classes into separate files * add non-additive error checking * skip non-additive scores * add non-additive CLI tests * export EffectTypeError * fix missing CatalogError * tidy up: put reusable pydantic models in models.py and export them * simplify n_finished check * set all effect weight fields to str with coerce_numbers_to_str * add rsid field validator * fix field validator field name o_o * Update score log structure (#49) * include example of validating a scoring file header * update header models * integrate ScoreLog and ScoreLogs * fix doctest imports * add log warning re: missing variants * test log output with incompatible effect type * make ScoreLogs a RootModel to act as a json list * refactor weight types from enum to string * prevent revalidation of ScoreVariants during ScoreLog instantiation * prevent checking position for complex variants * fix log creation with missing variants * update is_non_additive check to support mixed column types * Tidy up: delete unused target variants module (#47) * remove targetvariants class * fix deleted imports * fix imports * Gradually introduce type checking (#50) * set up type checking pre-commit * set up type checks for pgscatalog.core * add mypy action * don't use poetry for mypy * fix is_complex check * delete redundant functions * drop unused NormalisedScoringFile * rename variants -> variant_sources in ScoreLog * add support for ancestry specific allele frequencies * fix writing out * hm_match_chr and hm_match_pos: treat empty strings as None * set up a ProcessPoolExecutor skeleton * fix multiprocessing coverage * convert empty strings to None: is_haplotype and is_diplotype * fix TypeError -> ValueError for pydantic * fix doctest * add support for variant_type field * add complex variant tests * improve model documentation * bump minor version * simplify effect_weight_must_float again * Revert "simplify effect_weight_must_float again" This reverts commit 0d5c6e5. * document and improve effect_weight_must_float * docs: stop being confusing * cache computed fields in model * add more CLI logging messages * add has_complex_alleles computed field * set up annotated types in models and VariantLog model * add package mypy config * ignore typing when reading ScoreVariants as dicts of strings * clarify log messages when writing out
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.
These library classes and functions are no longer imported or used anywhere, so should probably be deleted
The last time they were called was prior to #22 being merged