Re: [galaxy-dev] Refreshing/Reloading Files
Hi Paul Please keep all replies on the list by using "reply all" A simple solution, which we use quite a lot, is the following: we use the "dynamic_options" attribute, eg: <inputs> <param name="foo" type="select" label="what" help="Use tickboxes to select " display="radio" dynamic_options="ds_fooOptions()"/> </inputs> <outputs> <data format="fasta" name="output" label="more foo" /> </outputs> <code file="extra_code_for_foo_list.py" /> <help> </help> </tool> and then we have a little python script ("extra_code_for_foo_list.py") with the "ds_fooOptions" function, which can read your file (ie your list of databases), eg def ds_fooOptions(): """List available foos as tuples of (displayName,value)""" foos = <whatever python code is required to generate the tuples> return foos I hope this helps, Hans On 06/29/2011 08:09 PM, Admins de Galaxy wrote:
Hi Hans,
yes that's it. We are offering the list of databases as options to select in the GUI, before executing the script which compares the selected database with the sequence.
Paul
2011/6/29 Hans-Rudolf Hotz<hrh@fmi.ch>
Hi Paul
You probably need to be a bit more specific...at what stage is this '.txt file' read (or rather should be read)? - are you offering the (growing) list of databases as options to select in the GUI?
Hans
On 06/29/2011 10:20 AM, Admins de Galaxy wrote:
Hello everyone, we have a problem with one of our selfwritten tools. We have a tool, that compares sequence with a database. The List of the available databases is loaded from a .txt file.
One of our other tools, manages that a new database is added to the .txt file. But Galaxy doesn't recognize the change.
It would be nice if someone could give us an advice.
Best regards
Paul K. Deuster @ Technische Hochschule Mittelhessen
______________________________**_____________________________ 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:
participants (1)
-
Hans-Rudolf Hotz