biothings / biothings_explorer

TRAPI service for BioThings Explorer
https://explorer.biothings.io
Apache License 2.0
10 stars 11 forks source link

Refining creative-mode templates for Sept 2023 release #461

Closed colleenXu closed 1 year ago

colleenXu commented 2 years ago

Making a new issue to track the work related to writing creative-model query templates (involves testing them against diseases in individual queries, and deciding the order to run them in....).

Related to previous comments in #449 and #453.

colleenXu commented 2 years ago

TDLR: There's still work:

From Slack discussions:

andrewsu commented 2 years ago

I'm going to close https://github.com/biothings/BioThings_Explorer_TRAPI/issues/237, but just noting here that orthology-based templates could also be good for drug-disease templates for creative mode...

tokebe commented 1 year ago

@colleenXu @andrewsu Just taking a brief browse through the TAQA triage board, looks like this issue may come from us. I think we could avoid this with some changes to make the directionality of m4-Chem-Gene-DoP.json more specific (possibly through qualifiers/etc). Though, based on @andrewsu's comment in another issue, it appears we may not want to, if I understand?

colleenXu commented 1 year ago

Seems like @andrewsu would be the one to decide...I agree that adding a qualifier constraint to the template could work to make this more specific (object direction is decreased)

tokebe commented 1 year ago

Based on today's meeting it seems we want to make the template more specific, but duplicate the less-specific version as a template with lower execution priority.

colleenXu commented 1 year ago

Keep in mind: UI has a 3-hop limit and subclass edges from node-expansion will count as 1. So templates should be only 1 / 2 hops right now...

colleenXu commented 1 year ago

Also, can modify templates now that "qualifier hierarchy expansion" is now supported. See https://github.com/biothings/biothings_explorer/issues/598

colleenXu commented 1 year ago

As discussed in today's meeting, the scope of this issue (defined for Sept release) is:

colleenXu commented 1 year ago

Originally, this issue was addressed by https://github.com/biothings/bte_trapi_query_graph_handler/pull/167.

But after #699 and #701 were identified, I adjusted the templates. The two main asks of this issue are still addressed by the adjusted templates + templateGroups.

Details of the adjustments made can be seen in #699 and #701 and in the PR that addresses them https://github.com/biothings/bte_trapi_query_graph_handler/pull/169#issuecomment-1683004440. I include basic info on the latest testing in this PR.

tokebe commented 1 year ago

Tracking will continue in linked and future issues, closing this one as completed