-
Notifications
You must be signed in to change notification settings - Fork 2
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
HpoDisease design #22
Comments
I agree that this requires discussion. The idea behind the current implementation is to classify the frequencies in other formats into the HPO term, thus the very rich API of What would the attribute list then be? What about the following?
Some open points:
I think that we can here have an interface Anyone who wants to have their favourite additional annotations can just implement the interface and in the implementation then use their additional favourite fields. For the core stuff, they can just delegate to |
@drseb ping |
The Clinical Modifer section of the HPO has lotsof terms that can be used to modifer the terms of the Phenotypic abnormality section. In principle, any cross product modifier x Term can be used for an annotation. The frequencies are the only such attribute that can be replaced by a numerical value and so they need to have special treatment (I think the current implementation is OK). |
OK, then I would propose:
And Then, we can see how far we get with this in our projects and possibly refine in the beginning of next year? Edit: |
Sounds good. In my implementation I made sure that whatever you use for the frequencies can be mapped to a numerical value. So I would always keep the original String value (e.g. "12 of 30") and the resulting double (i.e. 12/30). Keep in mind that the annotation file (in 90% of the annotations) will have a frequency modifier from the frequency sub ontology. I think I had the mappings to numerical values in my original code. ( @holtgrewe ) |
The HpoDisease class now has a TermWithFrequency object.
However,there are many other modifiers that a term can have including onset and any of the terms from the Clinical Modifier hierarchy.
It would be more useful to have TermWithAttributeList
Given that not all of the frequency data is an HPO term (i.e., sometimes we have 65% or 13/28), it might make sense to allow a term to have a frequency object as well as a list of modifiers.
It would be great to have a discussion about this before actually implementing code since there area number of desiderata and we do not want to have too much duplicate functionality
The text was updated successfully, but these errors were encountered: