WorkflowConversion / CTDConverter

Series of python scripts to convert CTD files into other formats such as Galaxy, CWL
MIT License
5 stars 8 forks source link

Add CWL support #28

Open chahuistle opened 7 years ago

chahuistle commented 7 years ago

The most reasonable way to go around this would be to refactor generator.py following these guidelines:

In the end, invoking the converter should look similar to:

$ python convert.py [FORMAT] [ADDITIONAL_ARGUMENTS ...]

That is, the first positional parameter will be the output format (either galaxy or cwl), while the rest of the arguments should not be modified in order to keep current functionality (i.e., generating Galaxy ToolConfig files). In other words, this is how a single CTD file is converted into a ToolConfig file:

$ python generator.py -i tool.ctd -o tool.xml

After the refactoring, this will change to:

$ python convert.py galaxy -i tool.ctd -o tool.xml

And in the case of CWL, it would look like:

$ python convert.py cwl -i tool.ctd -o tool.cwl
mr-c commented 6 years ago

Hey @chahuistle et all., thank you for all your work on this!