-
Notifications
You must be signed in to change notification settings - Fork 5
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
Proper CLI for repeats #32
Comments
There is also an interesting challenge to generate useful and valid tests for repeat parameters. Arguably, anything that can be generated should be testable :) |
#33 adds TestRepeats but only tested for repeats around TestParams - need to extend the tests to TestOutputs. Repeated TestOutputCollections is just too strange but probably also needs testing. It also adds TestOutputCollections so this:
seems to work in the test and the repeats branch of the ToolFactory supports them. |
@bernt-matthias: Assuming all repeats have unique names (not checked anywhere yet!) and since the elements are all accessed as ${repeatname.elementname} inside loops, there should not be any ambiguity even if there is a The ToolFactory generates repeats and testrepeats using an optional This simple approach is feasible using Galaxy forms but generates only repeats containing a single parameter :( Autogenerating multi-element repeats will be more complicated and may require much more checking inside galaxyxml. The galaxyxml components can correctly parse and generate them AFAIK but at this point, if you want a tool with multielement repeats, the TF is not likely to ever be clever enough to suffice...which is ok with me - it is only meant for relatively simple scripts and the code seems to cope well. |
yeah that won't be true. I have some that are distinguished only by (grand-)parent elements, which I do to make the macros easier (but that's a case that probably won't ever be supported by this library, those tools are too big.) |
My bias is a narrow focus in terms of what's possible using the Galaxy UI. The argparse route you have is very cool too. Interesting because the programmer who prepares the argparse code provides the information needed to drive a code generator. A far more information efficient process than a far more complex and ugly ToolFactory form. :) |
The content of the for loop
galaxyxml/examples/tool.xml
Line 23 in 988c82b
$i
. Also the loop variable should be something unique (e.g._REPEAT_NAME_i
)The text was updated successfully, but these errors were encountered: