-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix docs for format_source
#19330
base: dev
Are you sure you want to change the base?
fix docs for format_source
#19330
Conversation
Reference to parameters in sections and conditionals needs to be qualified with `|`. Collection elements can be referred to using element access syntax.
format_source
format_source
Seems kind of weird to have documented wrong examples ? Are you sure those specific examples are broken and it's not a general issue with tool profile versions or actual bugs ? |
I'm not sure. I could add a test checking if it works currently. |
the test for the nesting case accidentally works since the [legacy_mapping](https://github.com/galaxyproject/galaxy/blob/16ec912385b59429b1e87cebb817ec012b02ec4e/lib/galaxy/tools/parameters/wrapped.py#L43) contains a wrong mapping. with the output2 we can now test this. with output3 we now also test that the legacy behavior works.
Independent of the question if the syntax is correct, I would suggest to document the desired syntax :) To me it seems that this is fully qualified paths to the parameters, or? But the behavior is really weird, as the updated test shows:
My expectation would have been that unqualified input always works |
Document that reference to parameters in
format_source
in sections and conditionals needs to be qualified with|
. Collection elements can be referred to using element access syntax.To verify this I added a log statement here: lib/galaxy/tools/actions/init.py printing
format_source
,input_datasets
andinput_dataset_collections
. Here we look at a test for a tool with a pairpaired_input
in a conditionalsingle_paired
(IUC's fastp tool). Access would be via'single_paired|paired_input
:For the single ended input this looks analogous. Bottom line the dictionaries do not contain the unqualified inputs. In the fastp tool additional output actions were implemented https://github.com/galaxyproject/tools-iuc/blob/a80e3e4aa3a40970af507bf9119cf7f1c2ffb336/tools/fastp/macros.xml#L73 .. likely because the unqualified
format_source
did not work.How to test the changes?
(Select all options that apply)
License