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.