First check if the organism is already present in the network, if present return.
Get list of all possible column that may contain species/organism information from OrganismNetworkEntry Enum
Iterate through values and check if any of the present values are also present in our list of organisms retrieved from GProfiler. Select the first value that matches.
Set the value in the network.
In setGeneId(final CyNetwork network, final CyServiceRegistrar registrar):
First check if geneID is already present in network
Fixes: #53, #83
New Task Created:
Workflow:
While initialisation of
EnrichmentCytoPanel
, we call methods to set organism and gene ID. https://github.com/cytoscape/enrichment-table-app/blob/e216d18e6167c76520ecb51766842a15146a62b4/src/main/java/org/nrnb/gsoc/enrichment/ui/EnrichmentCytoPanel.java#L271-L274 https://github.com/cytoscape/enrichment-table-app/blob/e216d18e6167c76520ecb51766842a15146a62b4/src/main/java/org/nrnb/gsoc/enrichment/ui/EnrichmentCytoPanel.java#L280-L281In
setOrganism(final CyNetwork network)
:In
setGeneId(final CyNetwork network, final CyServiceRegistrar registrar)
: