-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add ratio related patterns and examples #312
Conversation
We can further improve the text later.
value: xrefs | ||
|
||
equivalentTo: | ||
text: "('proportionality_to' |
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.
text: "('proportionality_to' | |
text: "'proportionality_to' |
equivalentTo: | ||
text: "('proportionality_to' | ||
and ('has_part' some %s) | ||
and ('has_part' some %s)) |
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.
and ('has_part' some %s)) | |
and ('has_part' some %s) |
I have found two TO examples of ratio-type traits that also have logical definitions: The two classes above appear to defined by the following EQ pattern:
, where proportionality to, TRAIT-1 and TRAIT-2 are qualities. The two relationships used in the above TO pattern are defined outside of the OBO Relations Ontology: I am proposing the pattern
or more tersely:
In my suggested pattern I am using the standard RO |
This is definitely wrong:
if this doesn't show up as unsatisfiable we are doing something wrong This has cryptic incoherencies:
It loses directionality so |
@cmungall, thanks for your feedback.
|
It’s less about interoperability and more about coherency. It’s really
important the logical definition matches the label and the text definition.
If my argument doesn’t make sense we should explore further, and it’s
possible I’m wrong!
As to my preferred solution, yes I think we need to distinguish the roles
of the different sub quantities and specific relations seem easiest
…On Fri, Jan 26, 2024 at 5:35 AM Ray Stefancsik ***@***.***> wrote:
This is definitely wrong:
'proportionality_to'
and ('has_part' some (TRAIT-1 and TRAIT-2)
and ('characteristic_of_part_of' some ENTITY)
if this doesn't show up as unsatisfiable we are doing something wrong
This has cryptic incoherencies:
'proportionality_to'
and ('has_part' some TRAIT-1)
and ('has_part' some TRAIT-2)
and ('characteristic_of_part_of' some ENTITY)
It loses directionality so {increased, decreased} x {A:B, B:A} become
indistinguishable
@cmungall <https://github.com/cmungall>, thanks for your feedback.
I gather from your comment that we need directionality in the trait ratio
pattern to be interoperable with uPheno phenotypes.
I am wondering if I should request new RO terms equivalent to
1. TO:has_dividend_quality
<https://www.ebi.ac.uk/ols4/ontologies/to/properties/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FTO_has_dividend_quality?lang=en>
2. TO:has_divisor_quality
<https://www.ebi.ac.uk/ols4/ontologies/to/properties/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FTO_has_divisor_quality?lang=en>
and use an EQ based on the TO pattern above or do you have something
else in mind that would work better?
—
Reply to this email directly, view it on GitHub
<#312 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAMMOLP3HKUN6HKXP6FYSTYQOWLBAVCNFSM6AAAAABCCFIGB6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJSGA3TSOBZGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
The resolution of this PR depends on oborel/obo-relations#792 . |
We need this pattern now for another project, is there anything left to finalise it @rays22 ? |
@anitacaron can you make one soon? |
yes, I just need to finish reviewing some PRs, and I'll make one. |
@rays22 can you bring the PR to conclusion soon? We need it for a major project coming up in OBA in the next weeks |
I'm still waiting for another person to approve the RO release. |
approved
…On Wed, May 1, 2024 at 5:44 AM Anita Caron ***@***.***> wrote:
I'm still waiting for another person to approve the RO release.
—
Reply to this email directly, view it on GitHub
<#312 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAMMOKTNMEOOIJV5POEL7DZADPRVAVCNFSM6AAAAABCCFIGB6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBYGQYTGMJVGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Remove unnecessary DOS-DP templates, because the patterns they are intended for will be dealt by other templates.
Rename ratio related DOS-DP templates.
This commit intends to 1. Update the attribute_ratio DOS-DP templates. 2. Add some ratio-type trait examples to test the templates. If applied, this commit will fix #312.
If applied, this commit will fix #312.
If applied, this commit will fix #312.
If applied, this commit will fix #312.
text: "('ratio' | ||
and ('has_numerator' some %s) | ||
and ('has_denominator' some %s)) | ||
and ('characteristic_of_part_of' some 'anatomical_entity')" |
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.
not totally sure why this clause is here but I'm sure it's OK
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.
Also would like a reminder!
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.
The purpose is to limit to the classes to systems that are relevant to OBA (and make them subclasses of OBA:0000001). I want to avoid grouping urinary sodium to potassium ratio
together with some sea water sodium to potassium ratio
measurement class, for example in Ubergraph. Also, without the ('characteristic_of_part_of' some 'anatomical_entity')
part, I am getting some new ratio terms (see the examples in attributes_ratio.tsv
) that are not subclasses of OBA:0000001 and are flagged up as biological attribute child violation error
by the QC pipeline.
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.
Smart, its so unfortunate that this is necessary in OWL (its because of the tree model property which makes it impossible to constrain how references entities within an expression are related).
The same logic should be considered for abnormal chemical (without "in location") patterns.
compound_attributes
is to extend PATO with compound qualities, i.e. qualities that are defined by using primitive (I mean existing PATO) qualities.The two-component quality is then used in the
entity_attribute
pattern to define a new term, e.g.digit length ratio
.proportion_of_attributes
template to define such OBA attributes.Fix Create new 'ratio' DOS-DP pattern template #272 .