comparison env/lib/python3.7/site-packages/gxformat2/_scripts.py @ 5:9b1c78e6ba9c draft default tip

"planemo upload commit 6c0a8142489327ece472c84e558c47da711a9142"
author shellac
date Mon, 01 Jun 2020 08:59:25 -0400
parents 79f47841a781
children
comparison
equal deleted inserted replaced
4:79f47841a781 5:9b1c78e6ba9c
1 """Utilities for scripts in gxformat2."""
2 from gxformat2.export import from_galaxy_native
3
4
5 def ensure_format2(workflow_dict):
6 """Consume a dictionary and ensure the result is format2.
7
8 So convert from ga if needed.
9 """
10 if workflow_dict.get("a_galaxy_workflow") == "true":
11 workflow_dict = from_galaxy_native(workflow_dict)
12 return workflow_dict