Hi Evan, Yes, it is possible. Please note that these will not/may not work in workflows as expected and the use of code files is generally discouraged. (That said, in some cases you care more about user experience than anything else, and here they are useful.) Here's an example from my Apollo tool suite which lets the user interact with a service that lives outside of Galaxy. The user is able to select from a dropdown which dataset they would like to retrieve from that system (filtering on ones that they have permissions for.) Here I define an input with a dynamic_options parameter: https://github.com/galaxy-genome-annotation/galaxy-tools/blob/master/tools/a... I specify at the top of my tool which code file I want to load: https://github.com/galaxy-genome-annotation/galaxy-tools/blob/master/tools/a... Now when this is accessed, it looks at the code file paramater and calls the appropriate function: (There's a bit of unrelated stuff going on in here to handle caching since those calls are called many times and my backend is slow) https://github.com/galaxy-genome-annotation/galaxy-tools/blob/master/tools/a... Eventually this is called whcih shows the expected return format: https://github.com/galaxy-genome-annotation/galaxy-tools/blob/master/tools/a... A list of tuples where the first parameter is what the user sees, the second parameter is what value the option has (that is passed on the command line), and the third is "False". Cheers, On 2017-11-23, Evan Clark wrote:
Is it possible to execute a script within a tool xml confit to retrieve some data and append to the ui depending on the requested data. I.e if I wanted to get a list of files and provide them as select options before hitting the execute button.
--- Sent from VMware Boxer
___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at: https://lists.galaxyproject.org/
To search Galaxy mailing lists use the unified search at: http://galaxyproject.org/search/