From 954be1db124bc5466e354f2a3460a9359ef97787 Mon Sep 17 00:00:00 2001 From: Deepak Date: Tue, 19 Jan 2021 09:43:05 -0800 Subject: [PATCH] Fix inferring category for NCBITaxon prefix in ObographJsonTransformer Change OrganismalEntity to OrganismTaxon for NCBITaxon prefix --- kgx/transformers/json_transformer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kgx/transformers/json_transformer.py b/kgx/transformers/json_transformer.py index 685fc7de..87b0ade6 100644 --- a/kgx/transformers/json_transformer.py +++ b/kgx/transformers/json_transformer.py @@ -375,7 +375,7 @@ def get_category(self, curie: str, node: dict) -> Optional[str]: elif prefix == 'PR': category = "biolink:Protein" elif prefix == 'NCBITaxon': - category = "biolink:OrganismalEntity" + category = "biolink:OrganismTaxon" else: log.debug(f"{curie} Could not find a category mapping for '{category}'; Defaulting to 'biolink:OntologyClass'") return category