How to plot workflow as image
I see cwltool has an option '--print-dot', but it doesn't seem to print anything. I'm trying to use this with my workflow that works:
cwltool --print-dot bwa-mapping-workflow.cwl bwa-mapping-workflow-input.yml
and
cwltool --print-dot bwa-mapping-workflow.cwl
Is there a way to get a plot of the workflow?
• 2,744 views
•
link
1 answer
Try the new CWL viewer:
• 0 views
•
link
Log in to answer this question.
It looks like DOT is printed to standard output (https://github.com/common-workflow-language/cwltool/blob/07859d962f93bfbed39f6ec4910a6fb71c654979/cwltool/cwlrdf.py#L150), so perhaps just redirect the output to a file and open that with GraphViz or another DOT-rendering utility.