Closed peterjc closed 6 years ago
I'd vote for a collapsed section for "Additional options".
seconding @nsoranzo's suggestion. Sections are ideal here when the only decision being done is "show vs hide" rather than some interactive decision tree.
This is also my preference - it makes the command definition simpler as well without an if statement. When did Galaxy first support the collapsed sections though?
Background
http://galaxy-iuc-standards.readthedocs.io/en/latest/best_practices/tool_xml.html#dynamic-options says:
This pattern is widely used, and is currently in the planemo tutorial using
seqtk_seq
as an example, see https://planemo.readthedocs.io/en/latest/writing_appliance.html#conditional-parameters source https://raw.githubusercontent.com/galaxyproject/planemo/master/docs/_writing_parameters.rsthttps://github.com/galaxyproject/planemo/blob/e2454efdb4e6a342522abf3732f6785098be3508/project_templates/seqtk_complete/seqtk_seq.xml#L27
Unfortunately advanced option conditionals with wording like "Show" and "Hide" (or don't show) seems common, and can cause confusion:
The terms show/hide would lead you to think the setting would be used, but it will NOT. In discussion with colleagues this afternoon we wondered agreed this was misleading, and thought captions using something like "Enable" and "Disable" would be better.
Question
Should the IUC best practises recommend something like "Specify advanced parameters" or "Use Additional Params" with explicit Yes/No options (as in the Planemo example)?
Or, should the best practise guidelines recommend following the example of e.g. https://github.com/bgruening/galaxytools/blob/master/tools/salmon/salmon.xml Salmon Transcript Quantification from RNA-seq data (Galaxy Version 0.7.2), and use a collapsed section: