obnb icon indicating copy to clipboard operation
obnb copied to clipboard

HPO creates empty label set collection

Open kmanpearl opened this issue 6 months ago • 0 comments

When initializing an HPO object, the label set collection is empty. I suspect this is because HPO uses the mondo terms beginning with HP: and something changed in the mondo ontology structure. Eventually we would like to be able to use other organism phenotypes as well as human so instead of using mondo to get HPO terms, it might be best to ingest phenio instead, which contains terms from multiple species specific phenotype ontologies. Right now we only need the human (HP:) terms within phenio, but down the line we would like to be able to create label sets for the other model organisms that are included as well. If it is easier to ingest these ontologies all individually, then for now just the HPO is needed.

from obnb.data import DisGeNET, HPO
root = '../data/obnb/FullyRedundant'
lsc = DisGeNET(root=root)
print(len(lsc.sizes)) # 2202

lsc = HPO(root=root)
print(len(lsc.sizes)) # 0

kmanpearl avatar Aug 26 '24 20:08 kmanpearl