Skip to content

Commit

Permalink
Flip semsimsearch target enum for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinschaper committed Sep 21, 2023
1 parent a70bfe3 commit d67f60c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions backend/src/monarch_py/implementations/oak/oak_implementation.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@


class SemsimSearchCategory(Enum):
HUMAN_GENE = "HGNC"
MOUSE_GENE = "MGI"
RAT_GENE = "RGD"
ZEBRAFISH_GENE = "ZFIN"
WORM_GENE = "WB"
DISEASE = "MONDO"
HGNC = "Human Genes"
MGI = "Mouse Genes"
RGD = "Rat Genes"
ZFIN = "Zebrafish Genes"
WB = "C. Elegans Genes"
MONDO = "Human Diseases"


@dataclass
Expand Down Expand Up @@ -87,6 +87,6 @@ def search(self,
objects=set(objects),
object_closure_predicates=predicates,
include_similarity_object=True,
subject_prefixes=[target_group.value for target_group in target_groups],
subject_prefixes=[target_group.name for target_group in target_groups],
limit=limit,
)

0 comments on commit d67f60c

Please sign in to comment.