Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Issues with CTD modeling #618

@gaurav

Description

@gaurav

We have run into some problems with modeling CTD data that makes it hard to get useful information from CTD models. These were discovered as part of #599 and are visible on the Google CoLab nodebook that goes with it.

If you go to https://cam-kp-api-dev.renci.org/1.3.0/docs/index.html?url=docs.yaml#/default/postQuery and run the following TRAPI query for things related to prednisone (CHEBI:8382):

{
  "message": {
    "query_graph": {
      "nodes": {
        "n0": {
          "categories": [
            "biolink:NamedThing"
          ]
        },
        "n1": {
          "ids": [
            "CHEBI:8382"
          ]
        }
      },
      "edges": {
        "e0": {
          "subject": "n0",
          "object": "n1"
        }
      }
    }
  }
}

We only get back the following relationships:

We can get additional data by doing a two-hop instead of a one-hop:

{
  "message": {
    "query_graph": {
      "nodes": {
        "n0": {
          "ids": [
            "CHEBI:8382"
          ]
        },
        "n1": {
          "categories": [
            "biolink:NamedThing"
          ]
        },
        "n2": {
          "categories": [
            "biolink:NamedThing"
          ]
        }
      },
      "edges": {
        "e0": {
          "subject": "n0",
          "object": "n1"
        },
        "e1": {
          "subject": "n1",
          "object": "n2"
        }
      }
    }
  }
}

This mostly links to other processes, HOWEVER, we do get back http://id.nlm.nih.gov/mesh/D000077154 ("Rosiglitazone"), which hasn't been normalized, so it can't be connected to other things in TRAPI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions