3.9 years ago by
United States
Expanding on Bjoern's answer, and the fact you seem to want to use Python you might want to install the bioblend library on your machine with
$ pip install bioblend
and then you can use the following in your Python script to run a workflow
from bioblend.galaxy import GalaxyInstance
gi = GalaxyInstance('<Galaxy IP>', key='your API key')
libs = gi.libraries.get_libraries()
gi.workflows.show_workflow('workflow ID')
gi.workflows.run_workflow('workflow ID', input_dataset_map)
Details are covered in the link Bjoern shared. In short Bioblend makes it easier for you to work with Galaxy's internals. By using the Bioblend library you can avoid contructing the HTTP requests yourself.
API documentation for Galaxy itself is avalable here: http://galaxy-central.readthedocs.org/en/latest/lib/galaxy.webapps.galaxy.api.html
If the above still looks confusing try reading a bit about the generic work with APIs e.g.: http://www.codecademy.com/en/tracks/apis-python
•
link
modified 3.9 years ago
•
written
3.9 years ago by
Martin Čech ♦♦ 4.9k