Skip to content

Commit

Permalink
Clarify code used in output <filter> tags
Browse files Browse the repository at this point in the history
Add extra detail to the explanation of how the Python code to ``<filter>`` tags works in outputs.
  • Loading branch information
pvanheus committed Oct 7, 2018
1 parent 7d9093d commit a469849
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/galaxy/tools/xsd/galaxy.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -3901,7 +3901,12 @@ tool ultimately creates. If the code, when executed, returns ``True``,
the output dataset is retained. In these code blocks the tool parameters appear
as Python variables and are thus referred to without the $ used for the Cheetah
template (used in the ``<command>`` tag). Variables that are part of
conditionals are accessed using a hash named after the conditional.
conditionals are accessed using a dictionary named after the conditional. Boolean
parameters appear as booleans, not the value of their ``truevalue`` and
``falsevalue`` attributes. In the example below, ``options["selection_mode"`` would
appear as ``$options.selection_mode`` in Cheetah. Similarly ``options["vcf_output"]``
would appear as ``$options.vcf_output`` having the values ``'--vcf'`` when true and
``''`` when false in Cheetah.
### Example
Expand Down

0 comments on commit a469849

Please sign in to comment.