-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
basic module to write nxo features for efo #1
Conversation
nxontology_ml/features.py
Outdated
class NodeFeatures: | ||
def __init__(self, info: Node_Info[T_Node]) -> None: | ||
self.info = info |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of a separate NodeFeatures
class that embeds a node info object, I think a subclass of Node_Info could be nice. This would make it really easy for us to promote methods from nxontology_ml
to nxontology
, and it would allow us to benefit from the caching infrastructure provided by nxontology.
Basic approach in related-sciences/nxontology#26, but timeline on getting that working with typing and reviewing its desirability is TBD.
As of 208bee7, generated features look like:
@eric-czech soft review request. Will add more features and move to a more disciplined feature naming convention in future PRs, but any feedback on whether this is what you have in mind is helpful. |
Will merge now rather than continuing to make this PR larger. Review still welcome. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me 👍
# https://python-poetry.org/docs/versions/ | ||
[tool.poetry.dependencies] | ||
bioregistry = "^0.8.3" | ||
fire = "^0.5.0" | ||
ipykernel = "^6.24.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the jupyter libs be tool.poetry.dev-dependencies
?
This PR provides some basic code to features describing each ontology node (i.e. term/class). Currently includes only features that are provided by nxontology.