Hello,
I am testing the example_watch_folder.py script on my local instance of
Galaxy (Feb.10 distribution). I have set up a simple workflow with the
Fasta-to-Tabular tool. It takes a single input fasta file. Works in Galaxy
UI.
I have created input and output folders and followed the steps
It should be set on line 29 as the result of that submit function. Can you
add (between 29 and 30) a 'print library' to see what that call actually
results in?
Off the top of my head, this might be happening if your user account (that
the API key is associated with) isn't an admin account --
Hi Dannon,
Thanks. I've moved to a full size monitor, apparently my eyes are going!
They *key error: 0* seems to be the result of a bug in the code.
print(library)
results in:
{'url': '/api/libraries/4b187121143038ff', 'id': '4b187121143038ff',
'name': 'API Import11'}
So library[0]['id']
I was able to get the script to work. I've written down some notes for a
quickstart for anyone else who might be following in my footsteps.
1. Create input and output directores where you will drop and emit files.
In my example I used:
/Users/Rob/Documents/galaxy-drop/input
If you're having problems with example_watch_folder.py you may need to
increase the delay hack on line 55 to 15-20 seconds.
Without the increased delay, it would upload a zerobyte file for me. It's
not clear why, but there is a delay between the creation of a file name and
the setting of the file
I'm trying to get the example_watch_folder.py to work with a simple
example, but I am running into an error (Caveat, python is not
my native language)
I call the following script, but get the subsequent error:
$ ./example_watch_folder.py 8c25bc83f6f9e4001dd21eb7b64f063f
http://localhost:8080/
The second argument there should point to the url of Galaxy's API --
in this case http://localhost:8080/api, I'm guessing.
-Dannon
On Tue, Mar 12, 2013 at 6:11 PM, Rob Leclerc robert.lecl...@gmail.com wrote:
I'm trying to get the example_watch_folder.py to work with a simple example,
but I am
Hi Dannon. Thanks! I had been experimenting with BioBlend and forgot to add
the /api/ on the url.
./example_watch_folder.py 8c25bc83f6f9e4001dd21eb7b64f063f
http://localhost:8080/api/ /Users/Rob/Documents/galaxy-db/input/
/Users/Rob/Documents/galaxy-db/output/ API Imports 2a56795cad3c7db3