cwltool.checker
Static checking of CWL workflow connectivity.
Classes
Functions
|
Check if the source and sink types are correct. |
|
Return the merge flattened type of the source type. |
|
Check for identical type specifications, ignoring extra keys like inputBinding. |
|
Calculate the items missing from the fullset given the subset. |
|
Check if all source and sink types of a workflow are compatible before run time. |
|
Given a list of sinks, check if their types match with the types of their sources. |
|
Check if a workflow has circular dependency. |
|
Get the dependency tree in the form of adjacency list. |
|
Perform depth first search. |
|
Extract step id from either input or output fields. |
|
Return True if the step given by the parm_id is a conditional step. |
|
Check if a step contains a loop directive with all_iterations outputMethod. |
|
Check loop compatibility with other directives. |
Module Contents
- cwltool.checker.check_types(srctype, sinktype, linkMerge, valueFrom)
Check if the source and sink types are correct.
- cwltool.checker.merge_flatten_type(src)
Return the merge flattened type of the source type.
- Parameters:
src (cwltool.utils.SinkType)
- Return type:
cwltool.utils.CWLOutputType
- cwltool.checker.can_assign_src_to_sink(src, sink, strict=False)
Check for identical type specifications, ignoring extra keys like inputBinding.
In non-strict comparison, at least one source type must match one sink type, except for ‘null’. In strict comparison, all source types must match at least one sink type.
- cwltool.checker.missing_subset(fullset, subset)
Calculate the items missing from the fullset given the subset.
- cwltool.checker.static_checker(workflow_inputs, workflow_outputs, step_inputs, step_outputs, param_to_step)
Check if all source and sink types of a workflow are compatible before run time.
- Raises:
ValidationException – If any incompatibilities are detected.
- Parameters:
workflow_inputs (list[cwltool.utils.CWLObjectType])
workflow_outputs (collections.abc.MutableSequence[cwltool.utils.CWLObjectType])
step_inputs (collections.abc.MutableSequence[cwltool.utils.CWLObjectType])
step_outputs (list[cwltool.utils.CWLObjectType])
- Return type:
None
- cwltool.checker.check_all_types(src_dict, sinks, sourceField, param_to_step)
Given a list of sinks, check if their types match with the types of their sources.
- Raises:
WorkflowException – if there is an unrecognized linkMerge value (from
check_types()
)ValidationException – if a sourceField is missing
- Parameters:
sinks (collections.abc.MutableSequence[cwltool.utils.CWLObjectType])
sourceField (Union[Literal['source'], Literal['outputSource']])
- Return type:
- cwltool.checker.circular_dependency_checker(step_inputs)
Check if a workflow has circular dependency.
- Raises:
ValidationException – If a circular dependency is detected.
- Parameters:
step_inputs (list[cwltool.utils.CWLObjectType])
- Return type:
None
- cwltool.checker.get_dependency_tree(step_inputs)
Get the dependency tree in the form of adjacency list.
- cwltool.checker.processDFS(adjacency, traversal_path, processed, cycles)
Perform depth first search.
- cwltool.checker.get_step_id(field_id)
Extract step id from either input or output fields.
- cwltool.checker.is_conditional_step(param_to_step, parm_id)
Return True if the step given by the parm_id is a conditional step.
- cwltool.checker.is_all_output_method_loop_step(param_to_step, parm_id)
Check if a step contains a loop directive with all_iterations outputMethod.
- cwltool.checker.loop_checker(steps)
Check loop compatibility with other directives.
- Raises:
ValidationException – If there is an incompatible combination between loop and scatter.
- Parameters:
steps (collections.abc.Iterator[collections.abc.MutableMapping[str, Any]])
- Return type:
None