Skip to content

Commit 1a7235a

Browse files
authored
Merge pull request #1 from tensionhead/tensionhead-patch-1
Add select and <filter> example
2 parents f0c464d + dd95dea commit 1a7235a

1 file changed

Lines changed: 25 additions & 1 deletion

File tree

lib/galaxy/tool_util/xsd/galaxy.xsd

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4387,7 +4387,7 @@ appear as ``$options.selection_mode`` in Cheetah. Similarly ``options["vcf_outpu
43874387
would appear as ``$options.vcf_output`` having the values ``'--vcf'`` when true and
43884388
``''`` when false in Cheetah.
43894389
4390-
### Example
4390+
### Example
43914391
43924392
```xml
43934393
<inputs>
@@ -4412,6 +4412,30 @@ would appear as ``$options.vcf_output`` having the values ``'--vcf'`` when true
44124412
</data>
44134413
</outputs>
44144414
```
4415+
4416+
Variables that have the type attribute ``select`` need a special python statement of
4417+
the form ``selection and "option" in selection`` inside the ``<filter>`` tags.
4418+
4419+
### Example
4420+
4421+
```xml
4422+
<inputs>
4423+
<param name="outputs" type="select" optional="true">
4424+
<option value="save_phase">Phase Movie</option>
4425+
<option value="save_period">Period Movie</option>
4426+
</param>
4427+
</inputs>
4428+
4429+
<outputs>
4430+
<data name="phase_out" format="tiff" label="${movie.name[:-4]}_phase">
4431+
<filter>outputs and "save_phase" in outputs</filter>
4432+
</data>
4433+
<data name="period_out" format="tiff" label="${movie.name[:-4]}_period">
4434+
<filter>outputs and "save_period" in outputs</filter>
4435+
</data>
4436+
</outputs>
4437+
```
4438+
44154439
]]></xs:documentation>
44164440
</xs:annotation>
44174441
<xs:simpleContent>

0 commit comments

Comments
 (0)