Skip to content
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

Scoring is removing a bunch of node and edge bindings from results #127

Open
maximusunc opened this issue Jan 17, 2024 · 0 comments
Open
Assignees

Comments

@maximusunc
Copy link
Contributor

Given the following query, lookup returns a valid set of results, but then scoring takes out a bunch of node and edge bindings:

{
  "message": {
    "query_graph": {
      "nodes": {
        "n0": {
          "ids": [
            "MONDO:0009265"
          ],
          "is_set": false,
          "constraints": []
        },
        "n3": {
          "categories": [
            "biolink:Drug"
          ],
          "is_set": false,
          "constraints": []
        },
        "n1": {
          "categories": [
            "biolink:SmallMolecule"
          ],
          "is_set": false,
          "constraints": []
        },
        "n2": {
          "categories": [
            "biolink:Gene",
            "biolink:Protein"
          ],
          "is_set": false,
          "constraints": []
        }
      },
      "edges": {
        "e2": {
          "subject": "n3",
          "predicates": [
            "biolink:affects_activity_of",
            "biolink:interacts_with"
          ],
          "object": "n2",
          "attribute_constraints": [],
          "qualifier_constraints": []
        },
        "e3": {
          "subject": "n2",
          "predicates": [
            "biolink:contributes_to",
            "biolink:associated_with",
            "biolink:gene_associated_with_condition"
          ],
          "object": "n0",
          "attribute_constraints": [],
          "qualifier_constraints": []
        },
        "e1": {
          "subject": "n1",
          "predicates": [
            "biolink:affects_activity_of",
            "biolink:interacts_with"
          ],
          "object": "n2",
          "attribute_constraints": [],
          "qualifier_constraints": []
        },
        "e0": {
          "subject": "n0",
          "predicates": [
            "biolink:correlated_with",
            "biolink:associated_with_likelihood_of"
          ],
          "object": "n1",
          "attribute_constraints": [],
          "qualifier_constraints": []
        }
      }
    }
  },
  "workflow": [
    {
      "id": "lookup",
      "runner_parameters": {
        "allowlist": [
          "infores:aragorn"
        ]
      }
    },
    {
      "id": "score",
      "runner_parameters": {}
    }
  ],
  "log_level": "DEBUG"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants