toil.wdl.utils
¶
Module Contents¶
Functions¶
|
Get the version of the WDL document. |
|
Creates an instance of an AnalyzeWDL implementation based on the version. |
|
Takes a WDL-mapped json file and creates a dict containing the bindings. |
|
Takes an AnalyzeWDL instance and writes the final task dict and workflow |
- toil.wdl.utils.get_version(iterable)[source]¶
Get the version of the WDL document.
- Parameters
iterable – An iterable that contains the lines of a WDL document.
- Returns
The WDL version used in the workflow.
- Return type
- toil.wdl.utils.get_analyzer(wdl_file)[source]¶
Creates an instance of an AnalyzeWDL implementation based on the version.
- Parameters
wdl_file (str) – The path to the WDL file.
- Return type
- toil.wdl.utils.dict_from_JSON(JSON_file)[source]¶
Takes a WDL-mapped json file and creates a dict containing the bindings.
- toil.wdl.utils.write_mappings(parser, filename='mappings.out')[source]¶
Takes an AnalyzeWDL instance and writes the final task dict and workflow dict to the given file.
- Parameters
parser (toil.wdl.wdl_analysis.AnalyzeWDL) – An AnalyzeWDL instance.
filename (str) – The name of a file to write to.
- Return type
None