Permalink
Browse files

Prints singleton graphs (nodes with no edges) in wdl2dot dot file

  • Loading branch information...
1 parent 1b29f31 commit 5a8f6c57b74b0392c55959f3d0619ab23e5f0779 @meganshand meganshand committed Sep 19, 2016
Showing with 5 additions and 0 deletions.
  1. +5 −0 scripts/wdl2dot
View
@@ -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)

0 comments on commit 5a8f6c5

Please sign in to comment.