From 5a8f6c57b74b0392c55959f3d0619ab23e5f0779 Mon Sep 17 00:00:00 2001 From: meganshand Date: Mon, 19 Sep 2016 08:56:17 -0400 Subject: [PATCH] Prints singleton graphs (nodes with no edges) in wdl2dot dot file --- scripts/wdl2dot | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/wdl2dot b/scripts/wdl2dot index a4bc5ad..d5e5292 100755 --- a/scripts/wdl2dot +++ b/scripts/wdl2dot @@ -63,6 +63,11 @@ def run(): if to_node not in headnodes : output.write('"%s" [style=filled,fillcolor=".3 .7 1.0"]\n' % to_node) + for workflow in wdl_namespace.workflows: + for call in workflow.calls(): + if call.name not in tailnodes and call.name not in headnodes: + output.write('"%s"\n' % call.name) + output.write('labelloc="t"\n') #TODO: If there are multiple workflows this only uses the first for the title of the graph output.write('label="%s"\n' % wdl_namespace.workflows[0].name)