You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to retrieve the HPO terms for a list of genes and diseases in a OMIM database. It seems like they don't directly correspond to the HPO terms in the HPO database, though. For example, CARD9 has 20 associated HPO terms. PyHPO using
this code snippet returns 93 HPO terms. gene_term = HPOSet.from_queries(Gene.get(gene).hpo)
Many of these are somewhat related to the HPO terms in the set above.
This looks like it's retrieving all terms and their parents to the root node. Is there a way to only retrieve the terms in the database without their parents? Thanks for your help.
The text was updated successfully, but these errors were encountered:
Hi, you are right, pyhpo is indeed linking all parent terms to the corresponding genes as well. This was intentional from me at the time, but turned out to actually not be the correct way. So far, I didn't change the behavior in pyhpo due to backwards compatibility. I'm considering changing it at some point in the future, but have no timeline as of now.
I did fix it, however, in the hpo3 library, which works almost identical to pyhpo in its use. It uses a Rust backend (but can be fully used with Python only), so its much faster and only lacks a few features. Unless you rely on a unique feature of pyhpo, I recommend using hpo3 instead anyways.
I think it may be useful to make this distinction in the documentation until it has been updated. Having these two tools functioning in different ways could lead to some confusion.
Hello,
I tried to retrieve the HPO terms for a list of genes and diseases in a OMIM database. It seems like they don't directly correspond to the HPO terms in the HPO database, though. For example, CARD9 has 20 associated HPO terms. PyHPO using
this code snippet returns 93 HPO terms.
gene_term = HPOSet.from_queries(Gene.get(gene).hpo)
Many of these are somewhat related to the HPO terms in the set above.
This looks like it's retrieving all terms and their parents to the root node. Is there a way to only retrieve the terms in the database without their parents? Thanks for your help.
The text was updated successfully, but these errors were encountered: