Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Add phenio #210

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions bionty/_phenotype/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,21 @@

FILENAMES = {
"human_hp": "phenotype_lookup.parquet",
"all_phenio": "phenio_lookup.parquet",
}


class Phenotype(EntityTable):
"""Phenotype.

Args:
species: `name` of `Species` entity EntityTable.
"""Phenotype ontology.

1. Human phenotype ontology
Edits of terms are coordinated and reviewed on:
https://hpo.jax.org/app/

2. Phenomics Integrated Ontology (PHENIO)
Edits of terms are coordinated and reviewed on:
https://github.com/monarch-initiative/phenio
Set species to "all" to use it.
"""

def __init__(
Expand Down
4 changes: 3 additions & 1 deletion bionty/_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ def __init__(
"Check active databases using `bionty.display_active_versions`."
)

database = br.normalize_prefix(database)
normalized_database = br.normalize_prefix(database)
if normalized_database:
database = normalized_database
self._set_attributes(database=database, version=version)

@property
Expand Down
3 changes: 3 additions & 0 deletions bionty/versions/versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ Phenotype:
hp:
versions:
2023-01-27: https://github.com/obophenotype/human-phenotype-ontology/releases/download/v2023-01-27/hp.owl
phenio:
versions:
2022-12-13: https://github.com/monarch-initiative/phenio/releases/download/2022-12-13/phenio.owl