Skip to content

option for qnode / knode mapping #11

@cbizon

Description

@cbizon

Can a single knode map to two qnodes in the same answer? In robokop, the answer was yes, and this turned out to be useful sometimes, when you didn't want to force two nodes to be the same, but you could allow it. For instance, say you have two chemicals you want to relate to a common unknown disease via unknown genes:
(chem1)--(genea)--(disease)--(geneb)--(chem2).
If genea and geneb end up being the same, then that's actually a better, more parsimonious answer.

But sometimes, it's annoying. Say for instance that you want to find a drug for diseaseX by looking for a drug that treats a phenotypically similar drug:
(diseaseX)--(set of phenotypes)--(disease)--(drug)
If you don't control the k/q mapping, disease=diseaseX is a valid answer, but the results are not helpful.

So I think that this may need to be an option. I could imagine worse cases where you want the option set one way for one set of nodes and a different way for others. i.e. the ability to add arbitrary a<>b cypher clauses.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions