This workflow snippet demonstrate an example query to a GraphQL API. The Opentargets Platform provides a GraphQL API, which supports queries for a single target, disease/phenotype, drug, or target-disease association. In this example we provide the Ensembl Gene ID to get further informations like approved symbol, approved name, description, genomic location (chromosome, start- and endpoints), alternative genes, unique diseases and unique drugs.
The Ensembl IDs are provided in a table and the query is define in the String Manipulation node. The query is transformed to a JSON format, so it can be send as a request body in the POST request node. The response JSON is parsed using the JSON Path node and a simple Column Filter node removes the JSON query column for a cleaner table.
For more informations about the Opentarget Platform GraphQL API see the documentation: https://platform-docs.opentargets.org/data-access/graphql-api
To get an understanding of the Opentarget Platform GraphQL API and test different queries, please use the Opentarget Platform GraphQL Playground: https://api.platform.opentargets.org/api/v4/graphql/browser
To use this workflow in KNIME, download it from the below URL and open it in KNIME:
Download WorkflowDeploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to mail@nodepit.com.
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.