cwl_utils.parser.cwl_v1_2_utils
Attributes
Classes
Functions
|
Given a list of sinks, check if their types match with the types of their sources. |
Read file content up to 64 kB as a byte array. |
|
Read file content up to 64 kB as an utf-8 encoded string. |
|
Convert stdin, stdout and stderr type shortcuts to files. |
|
|
Load a CWL v1.2 input file from a serialized YAML string or a YAML object. |
|
Load a CWL v1.2 input file from a serialized YAML string. |
|
Load a CWL v1.2 input file from a YAML object. |
|
Determine the type for the given step input. |
|
Determine the type for the given step output. |
|
Determine the type for the given sourcenames. |
Module Contents
- cwl_utils.parser.cwl_v1_2_utils.check_all_types(src_dict, sinks, param_to_step, type_dict)
Given a list of sinks, check if their types match with the types of their sources.
- Parameters:
- Return type:
- cwl_utils.parser.cwl_v1_2_utils.content_limit_respected_read_bytes(f)
Read file content up to 64 kB as a byte array.
Throw exception for larger files (see https://www.commonwl.org/v1.2/Workflow.html#Changelog).
- cwl_utils.parser.cwl_v1_2_utils.content_limit_respected_read(f)
Read file content up to 64 kB as an utf-8 encoded string.
Throw exception for larger files (see https://www.commonwl.org/v1.2/Workflow.html#Changelog).
- cwl_utils.parser.cwl_v1_2_utils.convert_stdstreams_to_files(clt)
Convert stdin, stdout and stderr type shortcuts to files.
- Parameters:
- Return type:
None
- cwl_utils.parser.cwl_v1_2_utils.load_inputfile(doc, baseuri=None, loadingOptions=None)
Load a CWL v1.2 input file from a serialized YAML string or a YAML object.
- Parameters:
doc (Any)
baseuri (str | None)
loadingOptions (schema_salad.runtime.LoadingOptions | None)
- Return type:
Any
- cwl_utils.parser.cwl_v1_2_utils.load_inputfile_by_string(string, uri, loadingOptions=None)
Load a CWL v1.2 input file from a serialized YAML string.
- Parameters:
string (Any)
uri (str)
loadingOptions (schema_salad.runtime.LoadingOptions | None)
- Return type:
Any
- cwl_utils.parser.cwl_v1_2_utils.load_inputfile_by_yaml(yaml, uri, loadingOptions=None)
Load a CWL v1.2 input file from a YAML object.
- Parameters:
yaml (Any)
uri (str)
loadingOptions (schema_salad.runtime.LoadingOptions | None)
- Return type:
Any
- cwl_utils.parser.cwl_v1_2_utils.type_for_step_input(step, in_)
Determine the type for the given step input.
- Parameters:
- Return type:
Any
- cwl_utils.parser.cwl_v1_2_utils.type_for_step_output(step, sourcename)
Determine the type for the given step output.
- Parameters:
sourcename (str)
- Return type:
Any
- cwl_utils.parser.cwl_v1_2_utils.type_for_source(process, sourcenames, parent=None, linkMerge=None, pickValue=None)
Determine the type for the given sourcenames.
- Parameters:
process (cwl_utils.parser.cwl_v1_2.CommandLineTool | cwl_utils.parser.cwl_v1_2.Workflow | cwl_utils.parser.cwl_v1_2.ExpressionTool)
parent (cwl_utils.parser.cwl_v1_2.Workflow | None)
linkMerge (str | None)
pickValue (str | None)
- Return type:
Any