-
Notifications
You must be signed in to change notification settings - Fork 8
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
Improved CTD to galaxy conversion #54
Improved CTD to galaxy conversion #54
Conversation
ping @Tomnl @bgruening |
@bernt-matthias can you run this and create a PR against galaxyp/openms ...? Thanks a lot, this is awesome! |
This is comming soon. Still fighting with a few failing tests (yeah we have tests :) ). this will also soon be ready galaxyproject/galaxy#8109 .. maybe we should check if we can have this in 20.01 |
Jupp, I think retargeting to 20.01 could work. That's a cool present! Thanks so much. |
This is great! Thanks @bernt-matthias ! ping @RJMW |
Wow! - Thanks for the all the efforts @bernt-matthias |
- removed test file from OpenMS - fixed xsd link - extended select, i/o file test data
OpenMS (ctd 1.6.2) uses string with restriction true/false for booleans - those with default false are flags, ie `-param` - otherwise `-param false` needs to be given for simplification the neccessary command line is now stored directly in the true/falsevalue attributes also added more docs
selects: - add possibility of selects with multiple=true from ITEMLIST - just add single quotes around all option values optional: - optional was only set for params with restrictions now its always set (one might remove it for bools...) also add more documentation
dont set it via the param's value attribute, but the selected attribute of the options (the latter was already the case)
- add quotes for multiple,optional file inputs - remove the (now deprecated) size attribute of text fields - moved parameter to argument attribute - allow for empty defaults in int/float inputs
also restored quoting in ifile and repeats
Previously itemlists wo restrictions were rendered as repeats. Problem is that repeats do not allow to enter default values. Also a select is no option since the user can't add values So I suggest to use a text field allowing for comma separated list of strings, integers, or floats. The correctness of the input is verified by by validators and sanitizers. I'm optimistic that listitems do not contain ',' (which would be a problem), since restrictions of restricted itemslists are given as comma separated list.
also added itemlists with default to ctd
d8cea18
to
4912610
Compare
Hello @bernt-matthias ! I'm working on the CWL export, and I see that you've made a lot of fixes that I have, or that I need. Do you anticipate being able to merge soon? Or shall we peel off some of these fixes into other "bite-sized" PRs and merge them individually? |
Hi @mr-c .. good point. I would be happy about comments and to get this merged. I would say that this is functional. We used this branch for the release of OpenMS Galaxy tools for version 2.5 and 2.6. But:
|
.travis.yml
Outdated
|
||
# - virtualenv .venv | ||
# - . .venv/bin/activate | ||
- pip install git+https://github.com/bernt-matthias/CTDopts@topic/no-1-2x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WorkflowConversion:master is up to date with all commits from bernt-matthias:topic/no-1-2x.
But the reverse is not true, and is the source of at least one of the failing tests
.travis.yml
Outdated
# TODO fail expected due to | ||
# https://github.com/galaxyproject/galaxy/pull/9081 which will be in 20.01 and | ||
# empty.xml (no inputs) could be removed and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this still the case? The mentioned PR was merged last year
and enable planemo lint
0e58955
to
fa54b48
Compare
|
PyTests pass! Looks like some of the planemo-run tests fail. Shall we skip them and merge?
|
I will fix this this afternoon / tomorrow .. just need to remove a few test cases which are unreasonable (I think). |
if the format of an output is determined by a select then set the select-default as format of the output and add `<change_format><when>` only for the other choices
850eea7
to
35e5c54
Compare
so close, back to the error seen in #54 (comment) |
1e1a353
to
966007f
Compare
Just discussing with OpenMS developers that a change analogous to 4912610 might also be necessary for outputs :( |
Wait, this is already happening :) .. But I was thinking about to change this slightly. Now for list input / outputs we create a folder I'm thinking about using an integers 0,1,2... instead of And should be easy to implement. |
Hah. Tests are passing. Give me a bit for the last step... |
simpler and nicer
OK. If tests here and there galaxyproteomics/tools-galaxyp#555 are passing its ready. |
Looks good now. Last failing OpenMS tool is fixed. You may merge if you like. For another automatic tool generation project (https://github.com/hexylena/argparse2tool/) I would like to reuse the ParameterHardcoder, i.e. Line 27 in 9247ce5
and Line 215 in 9247ce5
Do you think its worth to factor this out into a separate project or should I just import CTDconverter? Btw. |
Huzzah! I don't have write access to this repository yet, otherwise I would merge it :-)
This isn't a javascript project, so I'd say that isn't enough for a separate package :-P |
This is the result of my work for the auto generation of the Galaxy OpenMS wrappers.
superseeds #50 and #46