Search Docs…

Search Docs…

Orpheus API Reference

Generic Insights

POST Generic Insights

https://api.wisecube.ai/orpheus/graphql

BODY graphql

This API query provides valuable insights into various aspects related to a specific disease entity.

QUERY

query getSupportedInsights($supportedInsightsInput: SearchGenericInsightInput!) {
  searchGenericInsights(insightInput: $supportedInsightsInput) {
    supportedInsights {
      description
      insightCategory
      insightType
      renderType
    }
  }
}

GRAPHQL VARIABLES

{
  "supportedInsightsInput": {
    "qid": "http://www.wikidata.org/entity/Q84263196"
  }
}

Example Request:

POST /orpheus/graphql HTTP/1.1 
Host: api.wisecube.ai 
Content-Type: application/json 
Content-Length: 1824 

{"query":"query getSupportedInsights($supportedInsightsInput: SearchGenericInsightInput!) {\n  searchGenericInsights(insightInput: $supportedInsightsInput) {\n    supportedInsights {\n      description\n      insightCategory\n      insightType\n      renderType\n    }\n  }\n}","variables":{"supportedInsightsInput":{"qid":"http://www.wikidata.org/entity/Q84263196"}}}

Example Response

{
    "data": {
        "searchGenericInsights": {
            "supportedInsights": [
                {
                    "description": "Genes associated with the disease.",
                    "insightCategory": "DISEASE",
                    "insightType": "GENETIC_ASSOCIATION",
                    "renderType": [
                        "BubbleChart",
                        "Table"
                    ]
                },
                {
                    "description": "Diseases that share genetic associations with the target disease, sorted by number of shared genes.",
                    "insightCategory": "DISEASE",
                    "insightType": "RELATED_DISEASES_VIA_GENES",
                    "renderType": [
                        "BarChart",
                        "Table"
                    ]
                },
                {...},
                {...}
                
               
            ]
        }
    }
}


Wisecube AI

© 2024