Skip to content

Commit

Permalink
Updated generate_tagged_tissue_ontology_id naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
MillenniumFalconMechanic committed Nov 29, 2023
1 parent 66868b1 commit 57d2671
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/portal/api/enrichment.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def enrich_dataset_with_ancestors(dataset, key, ontology_mapping):
# TODO remove is_schema_4 condition once Schema 4 is rolled out and
# feature flag is removed (#6266). "tissue" must include "tissue_type"
# when generating ancestors; "cell_type" and "development_stage" do not.
terms = [generate_tagged_ontology_id(e) for e in dataset[key]]
terms = [generate_tagged_tissue_ontology_id(e) for e in dataset[key]]
else:
terms = [e["ontology_term_id"] for e in dataset[key]]

Expand All @@ -37,7 +37,7 @@ def enrich_dataset_with_ancestors(dataset, key, ontology_mapping):
dataset[f"{key}_ancestors"] = unique_ancestors


def generate_tagged_ontology_id(tissue):
def generate_tagged_tissue_ontology_id(tissue):
"""
Generate ontology ID tagged with tissue_type for the given tissue. For
example, UBERON:1234567 (organoid).
Expand Down

0 comments on commit 57d2671

Please sign in to comment.