/Users/Rob/Documents/galaxy-drop/input
/Users/Rob/Documents/galaxy-drop/output
2. Edit the galaxy-dist configuration script (universe_wsgi.ini) and set:
3. In example_watch_folder.py, comment out line 30 and replace it with:allow_library_path_paste = true
#library_id = library[0]['id] This causes a "key error : 0" -- remove the indexing
library_id = library['id']
4. In example_watch_folder.py change the sleep duration on line 59 to 15 seconds. If you're still getting zero byte .dat files, then you'll need to extend the duration even more.
time.sleep(15)
5. CREATE A SAMPLE Workflow & Dataset:
./example_watch_folder.py <api_key> http://localhost:8080/api/ /Users/Rob/Documents/galaxy-drop/input /Users/Rob/Documents/galaxy-drop/output "My API Import" 4b187121143038ff
http://localhost:8080/api/histories/<history_id>/contents
where <history_id> is the id of the history that was created when you ran the dataset on the last workflow.
This is my result. The second file is the output file.
[ { "id": "0d16186aaff7cbfd", "name": "Galaxy1-[Exons_chr22].bed", "type": "file", "url": "/api/histories/2d9035b3fc152403/contents/0d16186aaff7cbfd" }, { "id": "81991b32733a4fc4", "name": "top200", "type": "file", "url": "/api/histories/2d9035b3fc152403/contents/81991b32733a4fc4" ]
and the output file can be downloaded here:http:localhost:8080/datasets/81991b32733a4fc4/display?to_ext=data