Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cyrest command - check for datasets. If no dataset is installed a dialog pops up. #134

Open
risserlin opened this issue Oct 30, 2019 · 0 comments
Labels

Comments

@risserlin
Copy link
Collaborator

From Cytoscape-helpdesk (https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/cytoscape-helpdesk/uKGwR8F4_7s/G0j5y8Q0DgAJ)

I'm interested in programmatically checking if any species dataset has been installed locally (i.e. in offline mode)
To do so, I use the CyREST command line API call:

body = dict(offline=True)
response = requests.post("http://localhost:1234/v1/commands/genemania/organisms", json=body)

If no organism is found, this call immediately opens up a pop-up window enabling the user to install a species dataset. Is there a way to prevent this window from opening up? The script I'm currently running checks for species and if present proceeds to perform other functions. I want to prevent any stall/error with the subsequent steps of my script that may occur in the time taken for the user to install a genemania dataset should the pop-up occur.

@risserlin risserlin added the bug label Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant