Skip to content

Commit

Permalink
search in cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ypriverol committed Jul 14, 2024
1 parent 92542d1 commit a5e3a61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdrf_pipelines/ols/ols.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,11 @@ def build_ontology_index(ontology_file: str, output_file: str = None, ontology_n
logger.info("Building index of %s", ontology_file)

if owl_file:
terms = read_owl_file(ontology_file, ontology_name = ontology_name)
terms = read_owl_file(ontology_file, ontology_name=ontology_name)
terms = [term for term in terms if "label" in term]
df = pd.DataFrame(terms)
else:
terms = read_obo_file(ontology_file, ontology_name = ontology_name)
terms = read_obo_file(ontology_file, ontology_name=ontology_name)
# remove terms with no label
terms = [term for term in terms if "label" in term]
df = pd.DataFrame(terms)
Expand Down

0 comments on commit a5e3a61

Please sign in to comment.