Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(L2GFeatureMatrix)!: streamline feature matrix management (op…
…entargets#745) * refactor(L2GFeatureMatrix): remove schema validation * refactor(FeatureFactory): reshape feature generation WIP * chore: pre-commit auto fixes [...] * chore: set l2gfeature properties with decorator * chore(l2gfeature): make credible_set and input_dependency instance attributes * chore(l2gfeature): make credible_set and input_dependency instance attributes * chore(featurefactory): distanceTssMeanFeature working * refactor(l2g): improve step dependency management * feat: implement * chore: fix mypy issues * feat: l2gfeaturematrix.from_features_list working * chore: comment out obsolete refs * chore(L2GFeatureMatrix): change `mode` attribute to `with_gold_standard` * refactor(l2g): move feature matrix writing to training module * feat(L2GFeatureMatrix): accept L2GGoldStandard or StudyLocus as inputs * feat: implement methods to build a feature matrix based on a studylocus/L2GGoldStandard instance * feat: coloc logic prototype * feat(l2g): filter non gwas credible sets at the start of the step * feat: rewrite colocalisation feature factory * test: add `test_colocalisation_feature_type` * test(colocalisation): add test_extract_maximum_coloc_probability_per_region_and_gene * feat(L2GFeatureInputLoader): support multiple deps by passing loader as kwarg * test: add integration tests `test_build_feature_matrix` * chore: drop config yamls * refactor: move feature classes to datasets module * docs: update feature docs * refactor(colocalisation): cleaner joins in `append_right_study_metadata` * chore: better logging abstract methods * test: add `L2GFeatureMatrix.test_from_features_list` unit tests * fix: add goldStandardSet when a gs instance is passed to `from_features_list` * fix: lowercase colocalisation type and add semantic test * test: add semantic test for `append_right_study_metadata` * feat(colocalisation): make `append_right_study_metadata` extensible to left metadata * fix(colocalisation): append_study_metadata cant take a gold standard * fix(colocalisation): extract_maximum_coloc_probability_per_region_and_gene cant take a gold standard * feat: add `StudyLocus` as a dependency of colocalisation features * fix: add studylocus to input loader in test * fix: add studylocus to input loader in test * fix: add studylocus to input loader in test
- Loading branch information