Skip to content
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

Question: Is there a way to use your tool to convert WDL to CWL format #76

Closed
michael-kotliar opened this issue May 28, 2021 · 4 comments

Comments

@michael-kotliar
Copy link

Not an actual issue, just a question. Is there any way to use your tool to convert WDL into CWL format? Or, at least, parse WDL into some objects that are compatible with source code from cwltool?

Thanks!

@illusional
Copy link
Member

illusional commented May 31, 2021

Hey @michael-kotliar! I've been working on a WDL parser in #69, it's not wrapped up nicely yet in the tool suite, but you could use it to convert some workflows. Note the limitations in the description of #69.

Here's a direct link to the script: https://raw.githubusercontent.com/PMCC-BioinformaticsCore/janis-core/master/janis_core/ingestion/fromwdl.py
You'll have to have janis-core + MiniWDL installed, you could change the last line (L447) to translate"cwl" instead of "janis", and then run the script directly:

python3 fromwdl.py <yourscript.wdl>

@michael-kotliar
Copy link
Author

Hi @illusional,
Great! Thanks for the script!

@illusional
Copy link
Member

How'd you go @michael-kotliar?

@michael-kotliar
Copy link
Author

It works fine. I tested it with a simple WDL workflow that I had and I was able to run it with cwltool. I think I had to make some changes in the code to generate outputs, but for now, I anyway use it only for testing purposes. However, I hope that this script will evolve and will cover more features from WDL:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants