Hi,
I am using the CyREST implementation to run ClueGO on Cytoscape. I use the following code to a) Run analysis and b) Save results to an output file:
# Run the analysis an save log file
analysis_name = "ClueGO Network"
selection = "Continue analysis"
response = requests.get(CLUEGO_BASE_URL+SEP+analysis_name+SEP+selection, headers=HEADERS)
# Get network id (SUID) (CyRest function from Cytoscape)
response = requests.get(CYTOSCAPE_BASE_URL+SEP+"networks"+SEP+"currentNetwork", headers=HEADERS)
current_network_suid = response.json()['data']['networkSUID']
# 4.2 Get ClueGO result table
if output_cluego:
response = requests.get(CLUEGO_BASE_URL+SEP+"analysis-results"+SEP+"get-cluego-table"+SEP+str(current_network_suid))
table_file_name = output_cluego
writeLines(response.text,table_file_name)
On occasions where there are no pathways found for my list of input, the user shown a pop-up message indicating that no GO terms/pathways were found for their input. Only when the user click on the 'Ok' button does the script proceed to the next step. Since I am trying to avoid user intervention, is there any way in my script to capture this pop-up and proceed without any user intervention. Please advice.