webyrd / mediKanren

Proof-of-concept for reasoning over the SemMedDB knowledge base, using miniKanren + heuristics + indexing.
MIT License
324 stars 53 forks source link

Add query template for phenotypic drug repurposing #4

Open mattmight opened 6 years ago

mattmight commented 6 years ago

Problem: We want to be able to recommend drugs based on what a disease does to a patient.

We want to be able to run queries of the form:

"y such that [disease A] increases x (for some x) AND drug y decreases x."

and

"y such that [disease A] decreases x (for some x) AND drug y increases x."

I think the most general query template would be:

"y such that R(A,x) and R’(y,x) for some x."