Skip to content

Commit

Permalink
Prepare to unexport ModeOfInheritancePredicate.
Browse files Browse the repository at this point in the history
  • Loading branch information
ielis committed Sep 12, 2024
1 parent d7109b4 commit 1b3c848
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/gpsea/analysis/predicate/genotype/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from ._gt_predicates import groups_predicate, sex_predicate, diagnosis_predicate
from ._gt_predicates import autosomal_dominant, autosomal_recessive
from ._gt_predicates import monoallelic_predicate, biallelic_predicate
from ._gt_predicates import ModeOfInheritancePredicate
from ._gt_predicates import ModeOfInheritancePredicate # TODO: remove before 1.0.0
from ._variant import VariantPredicates, ProteinPredicates

__all__ = [
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from gpsea.analysis.mtc_filter import PhenotypeMtcResult
from gpsea.analysis.pcats import HpoTermAnalysisResult
from gpsea.analysis.predicate.genotype import GenotypePolyPredicate, ModeOfInheritancePredicate, VariantPredicates
from gpsea.analysis.predicate.genotype import GenotypePolyPredicate, VariantPredicates, autosomal_dominant
from gpsea.analysis.predicate.phenotype import PhenotypePolyPredicate, HpoPredicate
from gpsea.io import GpseaJSONDecoder
from gpsea.model import *
Expand Down Expand Up @@ -119,7 +119,7 @@ def suox_mane_tx_id() -> str:
def suox_gt_predicate(
suox_mane_tx_id: str,
) -> GenotypePolyPredicate:
return ModeOfInheritancePredicate.autosomal_dominant(
return autosomal_dominant(
variant_predicate=VariantPredicates.variant_effect(
effect=VariantEffect.MISSENSE_VARIANT,
tx_id=suox_mane_tx_id
Expand Down

0 comments on commit 1b3c848

Please sign in to comment.