Right now this visualization only supports the report page for genes or proteins. In this mode, it will run this query (filling in the symbol for gene or protein) and display a network visualization using Cytoscape.js, showing the current gene or protein in the middle, with lines representing interactions to various other genes or proteins. (You can also click on the interaction lines or nodes and more information will be displayed.)
We want this tool to be also available on the list page, where it should display all the genes or proteins in the list, with interaction lines to other genes or proteins which they interact with.
To do this we will need to:
- Add
"ids" to the accepts array in config.json
- Set demo.html to pass the appropriate data (should be
{ "class": "Gene", "format": "ids", "value": [ 100, 101, 102 ] } where value is an array of gene IDs)
- Pass on the correct data to Cymine in index.js
- Handle this new data for a list of genes in cytoscape-intermine (whose npm package this repo wraps)
To achieve this, we will probably need to work a lot with the code in cytoscape-intermine (including a modification to the query used when on the list page, which should be to query for any in a list of gene symbols, instead of just one specific gene symbol).
Right now this visualization only supports the report page for genes or proteins. In this mode, it will run this query (filling in the symbol for gene or protein) and display a network visualization using Cytoscape.js, showing the current gene or protein in the middle, with lines representing interactions to various other genes or proteins. (You can also click on the interaction lines or nodes and more information will be displayed.)
We want this tool to be also available on the list page, where it should display all the genes or proteins in the list, with interaction lines to other genes or proteins which they interact with.
To do this we will need to:
"ids"to theacceptsarray in config.json{ "class": "Gene", "format": "ids", "value": [ 100, 101, 102 ] }where value is an array of gene IDs)To achieve this, we will probably need to work a lot with the code in cytoscape-intermine (including a modification to the query used when on the list page, which should be to query for any in a list of gene symbols, instead of just one specific gene symbol).