bio-attribute-ontology icon indicating copy to clipboard operation
bio-attribute-ontology copied to clipboard

grouping of trait terms

Open meghalithic opened this issue 3 years ago • 10 comments

general grouping class for 'bone' traits general grouping class for 'morphology' traits

both will have 'characteristic of part of' rather than 'characteristic of' so that terms can be nested

As an example, currently 'neurocranium morphology trait' and 'facial skeleton morphology trait' are not nested (after inference) under 'skull morphology trait' even though both neurocranium and 'facial skeleton' are children of skull in UBERON

@rays22 can you help create a template and I can put in terms?

meghalithic avatar Sep 16 '22 15:09 meghalithic

Hmm the way I originally set up OBA these would be inferred to be part of.

It may seem odd to have part ofs but this is consistent with pato and the plant TO has always done it this way

The proposal loses precision

cmungall avatar Sep 16 '22 22:09 cmungall

When I run the reasoner for 'skull size trait' does not show up as an inferred SubClassOf for 'neurocranium size trait'

meghalithic avatar Sep 17 '22 00:09 meghalithic

@cmungall we have not made any changes to this side of OBA at all. It seems to have always use characteristic of! I am taking your comment as consent then :)

matentzn avatar Sep 17 '22 04:09 matentzn

@megbalk proposal is exactly to add the part ofs in you say you had already added, so I think your last comment is based on misunderstanding the proposal)

matentzn avatar Sep 17 '22 04:09 matentzn

ok, so I can go ahead and change some to "characteristic of part of"?

meghalithic avatar Sep 30 '22 01:09 meghalithic

yes go ahead @megbalk. Sparingly at first until we get a picture of what will change as a consequence of it.

matentzn avatar Sep 30 '22 12:09 matentzn

I created a separate pattern called entity_attribute_partOf.yaml with data entity_attribute_partOf.tsv for 'characteristic of part of' using the neurocranium morphology trait as an example. It seems the entity_attribute.yaml does have a relation 'characteristic of part of', but I don't know how to tell the pattern how to decide which to use.

(see branch issue-139)

meghalithic avatar Sep 30 '22 21:09 meghalithic

Don't know how to tell the pattern how to decide which to use.

Only one of the two relationships should be mentioned in the pattern. Whatever you reference in the equivalentClass section in the end of the pattern decides which relation is used. Yours should only use the characteristic of part of one.

Make a Draft PR so we can look at your branch, and make comments directly on it!

matentzn avatar Oct 01 '22 12:10 matentzn

When the BFO:0000050 part_of relationships are materialised using ELK, then neurocranium morphology trait does show up as 'part of' some skull morphology trait thanks to the GCI in the entity_attribute pattern:

# (Q and characteristic_of some part-of some W) SubClassOf part-of some (Q and characteristic_of-in some W)
  69   │ # https://github.com/obophenotype/bio-attribute-ontology/issues/8
  70   │ logical_axioms:
  71   │   - axiom_type: GCI
  72   │     text: "%s and ('characteristic_of' some ('part_of' some %s)) SubClassOf 'part_of' some (%s and 'characteristic_of' some %s)"

skull_morphology_trait2

Materialising the GCI seems to provide the desired groupings, does it not?

rays22 avatar Nov 29 '22 20:11 rays22

Yes, but they will not be able to group the uPheno phenotypes correctly. We need to use the exact same pattern in uPheno and OBA if we want these two to interoperate..

matentzn avatar Nov 30 '22 11:11 matentzn