wikipathways / cytoscape-wikipathways-app

WikiPathways app for Cytoscape to open and access pathways from WikiPathways
Apache License 2.0
5 stars 7 forks source link

Opening more than one pathway programmatically (via commands) throws errors #68

Closed AlexanderPico closed 6 years ago

AlexanderPico commented 6 years ago

If a series of commands are issued to import say 3 or more pathways, then the app throws errors about trying to import more than one pathway at a time. But, shouldn't these requests simply be handled one at a time?

Might want to look at STRING app, which can take multiple queries before they are complete (and/or ask Scooter).

This is a particular problem for R scripting, for example.

AlexanderPico commented 6 years ago

For example, I have to send a sleep command for 2 seconds between import-as-pathway commands.

AlexanderPico commented 6 years ago

Example script tries to open 6 pathways. Tools>Execute Command File...

wp-script.txt

AlexanderPico commented 6 years ago

Example from stringApp... maybe relevant: https://github.com/RBVI/stringApp/blob/master/src/main/java/edu/ucsf/rbvi/stringApp/internal/tasks/ProteinQueryTask.java