On 08/23/2011 03:47 AM, Peter Cock wrote:
On Mon, Aug 22, 2011 at 5:29 PM, Samuel Lampa
I'm trying to parse the XML toolconfig format, for generating a lightweight
command config wizard in an Eclipse based product.
I wonder: Boolean parameters for some tools (such as the emboss/textsearch
one), seems to allow always giving the parameter's flag at all times, and
just change the following value between "yes" and "no" for these params,
textsearch -caseinsensitive yes
textsearch -caseinsensitive no
On the other hand, I guess there are many tools which tell such boolean
options just by giving the flag itself, so it would by analogy be:
My question is, how can I see the difference between these two cases, in the
tool config file? (Unfortunately I don't know any of the wrapped tools good
enough to know where to look for a flag of the latter kind).
That will be hard - there are several ways to write such a wrapper in Galaxy.
e.g. a select showing the user text like "Case sensitive" and "Case insensitive"
with values "yes" and "no" where the cheetah template contains:
textsearch -caseinsensitive $case
Or, a boolean select where the values are again "yes" and "no" with the
same template. See for example "ntoa" in the BowTie wrapper, file:
If the Unix tool expected a switch (present/absent) rather than an argument
with a value (yes/no) then you might use a select with two options "Case
sensitive" and "Case insensitive" with values "yes" and "no" where the
cheetah template contains:
Or, you might prefer to use values of "-caseinsensitive" and "" then the
cheetah becomes just:
Again, the above hypothetical select parameter $case could be a boolean
parameter. e.g. See the "filter_query" option in the blastn wrapper, file
Many thanks for this info, that helps a lot!
I guess I will either need to parse the cheetah if-syntax then (have
actually played with a rudimental parser in ANTLR already) or just do
some modifications of the tool config files, to make them work for our
purposes . Any other hints are of course welcome!
 Basically we have been prepared to need to do this anyway, since we
cannot make use of wrappers using an accompanying script file, but we
have assumed that the existing tool configs will be much valuable as a
starting point anyway.
System Expert / Bioinformatician
SNIC-UPPMAX HPC Center
Uppsala University, Sweden
Phone: +46 (0)18 - 471 1060
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: