Python classes for loading, manipulating CWL documents
This is the reference implementation of the Common Workflow Language. It is intended to be feature complete and provide comprehensive validation of CWL files as well as provide other tools related to working with CWL.
Modules
API Reference
This page contains auto-generated API reference documentation [1].
cwl_utils
Python Utilities and Autogenerated Classes for loading and parsing CWL documents.
Subpackages
cwl_utils.parser
Submodules
cwl_utils.parser.cwl_v1_0
Module Contents
Classes
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
A field of a record. |
|
Mark classes than have a save() and fromDoc() function. |
|
Define an enumerated type. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
A field of a record. |
|
Mark classes than have a save() and fromDoc() function. |
|
Represents a file (or group of files when secondaryFiles is provided) that |
|
Represents a directory to present to a command line tool. |
|
Mark classes than have a save() and fromDoc() function. |
|
Define an input or output parameter to a process. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
A field of a record. |
|
Mark classes than have a save() and fromDoc() function. |
|
Define an enumerated type. |
|
Mark classes than have a save() and fromDoc() function. |
|
A field of a record. |
|
Mark classes than have a save() and fromDoc() function. |
|
Define an enumerated type. |
|
Mark classes than have a save() and fromDoc() function. |
|
Define an input or output parameter to a process. |
|
Define an input or output parameter to a process. |
|
A process requirement declares a prerequisite that may or must be fulfilled |
|
The base executable type in CWL is the Process object defined by the |
|
Indicates that the workflow platform must support inline Javascript expressions. |
|
This field consists of an array of type definitions which must be used when |
|
Define an environment variable that will be set in the runtime environment |
|
When listed under inputBinding in the input schema, the term |
|
Describes how to generate an output parameter based on the files produced |
|
A field of a record. |
|
Mark classes than have a save() and fromDoc() function. |
|
Define an enumerated type. |
|
Mark classes than have a save() and fromDoc() function. |
|
A field of a record. |
|
Mark classes than have a save() and fromDoc() function. |
|
Define an enumerated type. |
|
Mark classes than have a save() and fromDoc() function. |
|
An input parameter for a CommandLineTool. |
|
An output parameter for a CommandLineTool. |
|
This defines the schema of the CWL Command Line Tool Description document. |
|
Indicates that a workflow component should be run in a |
|
A list of software packages that should be configured in the environment of |
|
Mark classes than have a save() and fromDoc() function. |
|
Define a file or subdirectory that must be placed in the designated output |
|
Define a list of files and subdirectories that must be created by the workflow platform in the designated output directory prior to executing the command line tool. |
|
Define a list of environment variables which will be set in the |
|
Modify the behavior of CommandLineTool to generate a single string |
|
Specify basic hardware resource requirements. |
|
Define an input or output parameter to a process. |
|
Execute an expression as a Workflow step. |
|
Describe an output parameter of a workflow. The parameter must be |
|
Mark classes than have a save() and fromDoc() function. |
|
The input of a workflow step connects an upstream parameter (from the |
|
Associate an output parameter of the underlying process with a workflow |
|
A workflow step is an executable element of a workflow. It specifies the |
|
A workflow describes a set of steps and the dependencies between |
|
Indicates that the workflow platform must support nested workflows in |
|
Indicates that the workflow platform must support the scatter and |
|
Indicates that the workflow platform must support multiple inbound data links |
|
Indicate that the workflow platform must support the valueFrom field |
Functions
|
Load field. |
|
Take a type of value, and extracts the value as a string. |
|
Normalize type names to schema-salad types. |
|
Parse error messages from several loaders into one error message. |
|
|
|
Save and set $namespaces, $schemas, $base and any other metadata fields at the top level. |
|
|
|
Transform a file path into a URL with file scheme. |
|
Expand short forms into full URLs using the given namespace dictionary. |
|
Convert any URI to a relative one, obeying the scoping rules. |
|
Compute the shortname of a fully qualified identifier. |
|
|
|
|
|
|
|
Shortcut to load via a YAML object. |
Attributes
- cwl_utils.parser.cwl_v1_0.IdxType
- class cwl_utils.parser.cwl_v1_0.LoadingOptions(fetcher=None, namespaces=None, schemas=None, fileuri=None, copyfrom=None, original_doc=None, addl_metadata=None, baseuri=None, idx=None, imports=None, includes=None, no_link_check=None, container=None)
- Parameters:
fetcher (Optional[schema_salad.fetcher.Fetcher]) –
schemas (Optional[List[str]]) –
fileuri (Optional[str]) –
copyfrom (Optional[LoadingOptions]) –
original_doc (Optional[Any]) –
baseuri (Optional[str]) –
idx (Optional[IdxType]) –
imports (Optional[List[str]]) –
includes (Optional[List[str]]) –
no_link_check (Optional[bool]) –
container (Optional[str]) –
- property graph: rdflib.Graph
Generate a merged rdflib.Graph from all entries in self.schemas.
- Return type:
- idx: IdxType
- fetcher: schema_salad.fetcher.Fetcher
- cache: schema_salad.utils.CacheType
- class cwl_utils.parser.cwl_v1_0.Saveable
Bases:
abc.ABC
Mark classes than have a save() and fromDoc() function.
- abstract classmethod fromDoc(_doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
_doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- cwl_utils.parser.cwl_v1_0.load_field(val, fieldtype, baseuri, loadingOptions, lc=None)
Load field.
- Parameters:
fieldtype (_Loader) –
baseuri (str) –
loadingOptions (LoadingOptions) –
lc (Optional[List[Any]]) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_0.save_type
- cwl_utils.parser.cwl_v1_0.extract_type(val_type)
Take a type of value, and extracts the value as a string.
- Parameters:
val_type (Type[Any]) –
- Return type:
- cwl_utils.parser.cwl_v1_0.convert_typing(val_type)
Normalize type names to schema-salad types.
- cwl_utils.parser.cwl_v1_0.parse_errors(error_message)
Parse error messages from several loaders into one error message.
- cwl_utils.parser.cwl_v1_0.save(val, top=True, base_url='', relative_uris=True)
- cwl_utils.parser.cwl_v1_0.save_with_metadata(val, valLoadingOpts, top=True, base_url='', relative_uris=True)
Save and set $namespaces, $schemas, $base and any other metadata fields at the top level.
- Parameters:
val (Any) –
valLoadingOpts (LoadingOptions) –
top (bool) –
base_url (str) –
relative_uris (bool) –
- Return type:
save_type
- cwl_utils.parser.cwl_v1_0.expand_url(url, base_url, loadingOptions, scoped_id=False, vocab_term=False, scoped_ref=None)
- cwl_utils.parser.cwl_v1_0.file_uri(path, split_frag=False)
Transform a file path into a URL with file scheme.
- cwl_utils.parser.cwl_v1_0.prefix_url(url, namespaces)
Expand short forms into full URLs using the given namespace dictionary.
- cwl_utils.parser.cwl_v1_0.save_relative_uri(uri, base_url, scoped_id, ref_scope, relative_uris)
Convert any URI to a relative one, obeying the scoping rules.
- cwl_utils.parser.cwl_v1_0.shortname(inputid)
Compute the shortname of a fully qualified identifier.
- class cwl_utils.parser.cwl_v1_0.Documented
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_0.RecordField(name, type_, doc=None, extension_fields=None, loadingOptions=None)
Bases:
Documented
A field of a record.
- Parameters:
name (Any) –
type_ (Any) –
doc (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.RecordSchema(type_, fields=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- Parameters:
type_ (Any) –
fields (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.EnumSchema(symbols, type_, name=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Define an enumerated type.
- Parameters:
symbols (Any) –
type_ (Any) –
name (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.ArraySchema(items, type_, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- Parameters:
items (Any) –
type_ (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.MapSchema(type_, values, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- Parameters:
type_ (Any) –
values (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.UnionSchema(names, type_, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- Parameters:
names (Any) –
type_ (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.CWLArraySchema(items, type_, extension_fields=None, loadingOptions=None)
Bases:
ArraySchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
items (Any) –
type_ (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.CWLRecordField(name, type_, doc=None, extension_fields=None, loadingOptions=None)
Bases:
RecordField
A field of a record.
- Parameters:
name (Any) –
type_ (Any) –
doc (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.CWLRecordSchema(type_, fields=None, extension_fields=None, loadingOptions=None)
Bases:
RecordSchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
type_ (Any) –
fields (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.File(location=None, path=None, basename=None, dirname=None, nameroot=None, nameext=None, checksum=None, size=None, secondaryFiles=None, format=None, contents=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Represents a file (or group of files when secondaryFiles is provided) that will be accessible by tools using standard POSIX file system call API such as open(2) and read(2).
Files are represented as objects with class of File. File objects have a number of properties that provide metadata about the file.
The location property of a File is a URI that uniquely identifies the file. Implementations must support the file:// URI scheme and may support other schemes such as http://. The value of location may also be a relative reference, in which case it must be resolved relative to the URI of the document it appears in. Alternately to location, implementations must also accept the path property on File, which must be a filesystem path available on the same host as the CWL runner (for inputs) or the runtime environment of a command line tool execution (for command line tool outputs).
If no location or path is specified, a file object must specify contents with the UTF-8 text content of the file. This is a “file literal”. File literals do not correspond to external resources, but are created on disk with contents with when needed for a executing a tool. Where appropriate, expressions can return file literals to define new files on a runtime. The maximum size of contents is 64 kilobytes.
The basename property defines the filename on disk where the file is staged. This may differ from the resource name. If not provided, basename must be computed from the last path part of location and made available to expressions.
The secondaryFiles property is a list of File or Directory objects that must be staged in the same directory as the primary file. It is an error for file names to be duplicated in secondaryFiles.
The size property is the size in bytes of the File. It must be computed from the resource and made available to expressions. The checksum field contains a cryptographic hash of the file content for use it verifying file contents. Implementations may, at user option, enable or disable computation of the checksum field for performance or other reasons. However, the ability to compute output checksums is required to pass the CWL conformance test suite.
When executing a CommandLineTool, the files and secondary files may be staged to an arbitrary directory, but must use the value of basename for the filename. The path property must be file path in the context of the tool execution runtime (local to the compute node, or within the executing container). All computed properties should be available to expressions. File literals also must be staged and path must be set.
When collecting CommandLineTool outputs, glob matching returns file paths (with the path property) and the derived properties. This can all be modified by outputEval. Alternately, if the file cwl.output.json is present in the output, outputBinding is ignored.
File objects in the output must provide either a location URI or a path property in the context of the tool execution runtime (local to the compute node, or within the executing container).
When evaluating an ExpressionTool, file objects must be referenced via location (the expression tool does not have access to files on disk so path is meaningless) or as file literals. It is legal to return a file object with an existing location but a different basename. The loadContents field of ExpressionTool inputs behaves the same as on CommandLineTool inputs, however it is not meaningful on the outputs.
An ExpressionTool may forward file references from input to output by using the same value for location.
- Parameters:
location (Optional[Any]) –
path (Optional[Any]) –
basename (Optional[Any]) –
dirname (Optional[Any]) –
nameroot (Optional[Any]) –
nameext (Optional[Any]) –
checksum (Optional[Any]) –
size (Optional[Any]) –
secondaryFiles (Optional[Any]) –
format (Optional[Any]) –
contents (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.Directory(location=None, path=None, basename=None, listing=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Represents a directory to present to a command line tool.
Directories are represented as objects with class of Directory. Directory objects have a number of properties that provide metadata about the directory.
The location property of a Directory is a URI that uniquely identifies the directory. Implementations must support the file:// URI scheme and may support other schemes such as http://. Alternately to location, implementations must also accept the path property on Directory, which must be a filesystem path available on the same host as the CWL runner (for inputs) or the runtime environment of a command line tool execution (for command line tool outputs).
A Directory object may have a listing field. This is a list of File and Directory objects that are contained in the Directory. For each entry in listing, the basename property defines the name of the File or Subdirectory when staged to disk. If listing is not provided, the implementation must have some way of fetching the Directory listing at runtime based on the location field.
If a Directory does not have location, it is a Directory literal. A Directory literal must provide listing. Directory literals must be created on disk at runtime as needed.
The resources in a Directory literal do not need to have any implied relationship in their location. For example, a Directory listing may contain two files located on different hosts. It is the responsibility of the runtime to ensure that those files are staged to disk appropriately. Secondary files associated with files in listing must also be staged to the same Directory.
When executing a CommandLineTool, Directories must be recursively staged first and have local values of path assigend.
Directory objects in CommandLineTool output must provide either a location URI or a path property in the context of the tool execution runtime (local to the compute node, or within the executing container).
An ExpressionTool may forward file references from input to output by using the same value for location.
Name conflicts (the same basename appearing multiple times in listing or in any entry in secondaryFiles in the listing) is a fatal error.
- Parameters:
location (Optional[Any]) –
path (Optional[Any]) –
basename (Optional[Any]) –
listing (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.SchemaBase
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_0.Parameter
Bases:
SchemaBase
Define an input or output parameter to a process.
- class cwl_utils.parser.cwl_v1_0.InputBinding
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_0.OutputBinding
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_0.InputSchema
Bases:
SchemaBase
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_0.OutputSchema
Bases:
SchemaBase
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_0.InputRecordField(name, type_, doc=None, inputBinding=None, label=None, extension_fields=None, loadingOptions=None)
Bases:
CWLRecordField
A field of a record.
- Parameters:
name (Any) –
type_ (Any) –
doc (Optional[Any]) –
inputBinding (Optional[Any]) –
label (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.InputRecordSchema(type_, fields=None, label=None, name=None, extension_fields=None, loadingOptions=None)
Bases:
CWLRecordSchema
,InputSchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
type_ (Any) –
fields (Optional[Any]) –
label (Optional[Any]) –
name (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.InputEnumSchema(symbols, type_, name=None, label=None, inputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
EnumSchema
,InputSchema
Define an enumerated type.
- Parameters:
symbols (Any) –
type_ (Any) –
name (Optional[Any]) –
label (Optional[Any]) –
inputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.InputArraySchema(items, type_, label=None, inputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
CWLArraySchema
,InputSchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
items (Any) –
type_ (Any) –
label (Optional[Any]) –
inputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.OutputRecordField(name, type_, doc=None, outputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
CWLRecordField
A field of a record.
- Parameters:
name (Any) –
type_ (Any) –
doc (Optional[Any]) –
outputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.OutputRecordSchema(type_, fields=None, label=None, extension_fields=None, loadingOptions=None)
Bases:
CWLRecordSchema
,OutputSchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
type_ (Any) –
fields (Optional[Any]) –
label (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.OutputEnumSchema(symbols, type_, name=None, label=None, outputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
EnumSchema
,OutputSchema
Define an enumerated type.
- Parameters:
symbols (Any) –
type_ (Any) –
name (Optional[Any]) –
label (Optional[Any]) –
outputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.OutputArraySchema(items, type_, label=None, outputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
CWLArraySchema
,OutputSchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
items (Any) –
type_ (Any) –
label (Optional[Any]) –
outputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.InputParameter(id, label=None, secondaryFiles=None, streamable=None, doc=None, format=None, inputBinding=None, default=None, type_=None, extension_fields=None, loadingOptions=None)
Bases:
Parameter
Define an input or output parameter to a process.
- Parameters:
id (Any) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
doc (Optional[Any]) –
format (Optional[Any]) –
inputBinding (Optional[Any]) –
default (Optional[Any]) –
type_ (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.OutputParameter(id, label=None, secondaryFiles=None, streamable=None, doc=None, outputBinding=None, format=None, extension_fields=None, loadingOptions=None)
Bases:
Parameter
Define an input or output parameter to a process.
- Parameters:
id (Any) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
doc (Optional[Any]) –
outputBinding (Optional[Any]) –
format (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.ProcessRequirement
Bases:
Saveable
A process requirement declares a prerequisite that may or must be fulfilled before executing a process. See [Process.hints](#process) and [Process.requirements](#process).
Process requirements are the primary mechanism for specifying extensions to the CWL core specification.
- class cwl_utils.parser.cwl_v1_0.Process
Bases:
Saveable
The base executable type in CWL is the Process object defined by the document. Note that the Process object is abstract and cannot be directly executed.
- class cwl_utils.parser.cwl_v1_0.InlineJavascriptRequirement(expressionLib=None, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Indicates that the workflow platform must support inline Javascript expressions. If this requirement is not present, the workflow platform must not perform expression interpolatation.
- Parameters:
expressionLib (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.SchemaDefRequirement(types, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
This field consists of an array of type definitions which must be used when interpreting the inputs and outputs fields. When a type field contain a IRI, the implementation must check if the type is defined in schemaDefs and use that definition. If the type is not found in schemaDefs, it is an error. The entries in schemaDefs must be processed in the order listed such that later schema definitions may refer to earlier schema definitions.
- Parameters:
types (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.EnvironmentDef(envName, envValue, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Define an environment variable that will be set in the runtime environment by the workflow platform when executing the command line tool. May be the result of executing an expression, such as getting a parameter from input.
- Parameters:
envName (Any) –
envValue (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.CommandLineBinding(loadContents=None, position=None, prefix=None, separate=None, itemSeparator=None, valueFrom=None, shellQuote=None, extension_fields=None, loadingOptions=None)
Bases:
InputBinding
When listed under inputBinding in the input schema, the term “value” refers to the the corresponding value in the input object. For binding objects listed in CommandLineTool.arguments, the term “value” refers to the effective value after evaluating valueFrom.
The binding behavior when building the command line depends on the data type of the value. If there is a mismatch between the type described by the input schema and the effective value, such as resulting from an expression evaluation, an implementation must use the data type of the effective value.
string: Add prefix and the string to the command line.
number: Add prefix and decimal representation to command line.
- boolean: If true, add prefix to the command line. If false, add
nothing.
File: Add prefix and the value of [File.path](#File) to the command line.
Directory: Add prefix and the value of [Directory.path](#Directory) to the command line.
- array: If itemSeparator is specified, add prefix and the join
the array into a single string with itemSeparator separating the items. Otherwise first add prefix, then recursively process individual elements. If the array is empty, it does not add anything to command line.
- object: Add prefix only, and recursively add object fields for
which inputBinding is specified.
null: Add nothing.
- Parameters:
loadContents (Optional[Any]) –
position (Optional[Any]) –
prefix (Optional[Any]) –
separate (Optional[Any]) –
itemSeparator (Optional[Any]) –
valueFrom (Optional[Any]) –
shellQuote (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.CommandOutputBinding(glob=None, loadContents=None, outputEval=None, extension_fields=None, loadingOptions=None)
Bases:
OutputBinding
Describes how to generate an output parameter based on the files produced by a CommandLineTool.
The output parameter value is generated by applying these operations in the following order:
glob
loadContents
outputEval
secondaryFiles
- Parameters:
glob (Optional[Any]) –
loadContents (Optional[Any]) –
outputEval (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.CommandInputRecordField(name, type_, doc=None, inputBinding=None, label=None, extension_fields=None, loadingOptions=None)
Bases:
InputRecordField
A field of a record.
- Parameters:
name (Any) –
type_ (Any) –
doc (Optional[Any]) –
inputBinding (Optional[Any]) –
label (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.CommandInputRecordSchema(type_, fields=None, label=None, name=None, extension_fields=None, loadingOptions=None)
Bases:
InputRecordSchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
type_ (Any) –
fields (Optional[Any]) –
label (Optional[Any]) –
name (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.CommandInputEnumSchema(symbols, type_, name=None, label=None, inputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
InputEnumSchema
Define an enumerated type.
- Parameters:
symbols (Any) –
type_ (Any) –
name (Optional[Any]) –
label (Optional[Any]) –
inputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.CommandInputArraySchema(items, type_, label=None, inputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
InputArraySchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
items (Any) –
type_ (Any) –
label (Optional[Any]) –
inputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.CommandOutputRecordField(name, type_, doc=None, outputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
OutputRecordField
A field of a record.
- Parameters:
name (Any) –
type_ (Any) –
doc (Optional[Any]) –
outputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.CommandOutputRecordSchema(type_, fields=None, label=None, name=None, extension_fields=None, loadingOptions=None)
Bases:
OutputRecordSchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
type_ (Any) –
fields (Optional[Any]) –
label (Optional[Any]) –
name (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.CommandOutputEnumSchema(symbols, type_, name=None, label=None, outputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
OutputEnumSchema
Define an enumerated type.
- Parameters:
symbols (Any) –
type_ (Any) –
name (Optional[Any]) –
label (Optional[Any]) –
outputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.CommandOutputArraySchema(items, type_, label=None, outputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
OutputArraySchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
items (Any) –
type_ (Any) –
label (Optional[Any]) –
outputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.CommandInputParameter(id, label=None, secondaryFiles=None, streamable=None, doc=None, format=None, inputBinding=None, default=None, type_=None, extension_fields=None, loadingOptions=None)
Bases:
InputParameter
An input parameter for a CommandLineTool.
- Parameters:
id (Any) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
doc (Optional[Any]) –
format (Optional[Any]) –
inputBinding (Optional[Any]) –
default (Optional[Any]) –
type_ (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.CommandOutputParameter(id, label=None, secondaryFiles=None, streamable=None, doc=None, outputBinding=None, format=None, type_=None, extension_fields=None, loadingOptions=None)
Bases:
OutputParameter
An output parameter for a CommandLineTool.
- Parameters:
id (Any) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
doc (Optional[Any]) –
outputBinding (Optional[Any]) –
format (Optional[Any]) –
type_ (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.CommandLineTool(inputs, outputs, id=None, requirements=None, hints=None, label=None, doc=None, cwlVersion=None, baseCommand=None, arguments=None, stdin=None, stderr=None, stdout=None, successCodes=None, temporaryFailCodes=None, permanentFailCodes=None, extension_fields=None, loadingOptions=None)
Bases:
Process
This defines the schema of the CWL Command Line Tool Description document.
- Parameters:
inputs (Any) –
outputs (Any) –
id (Optional[Any]) –
requirements (Optional[Any]) –
hints (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
cwlVersion (Optional[Any]) –
baseCommand (Optional[Any]) –
arguments (Optional[Any]) –
stdin (Optional[Any]) –
stderr (Optional[Any]) –
stdout (Optional[Any]) –
successCodes (Optional[Any]) –
temporaryFailCodes (Optional[Any]) –
permanentFailCodes (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.DockerRequirement(dockerPull=None, dockerLoad=None, dockerFile=None, dockerImport=None, dockerImageId=None, dockerOutputDirectory=None, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Indicates that a workflow component should be run in a [Docker](http://docker.com) container, and specifies how to fetch or build the image.
If a CommandLineTool lists DockerRequirement under hints (or requirements), it may (or must) be run in the specified Docker container.
The platform must first acquire or install the correct Docker image as specified by dockerPull, dockerImport, dockerLoad or dockerFile.
The platform must execute the tool in the container using docker run with the appropriate Docker image and tool command line.
The workflow platform may provide input files and the designated output directory through the use of volume bind mounts. The platform should rewrite file paths in the input object to correspond to the Docker bind mounted locations. That is, the platform should rewrite values in the parameter context such as runtime.outdir, runtime.tmpdir and others to be valid paths within the container.
When running a tool contained in Docker, the workflow platform must not assume anything about the contents of the Docker container, such as the presence or absence of specific software, except to assume that the generated command line represents a valid command within the runtime environment of the container.
## Interaction with other requirements
If [EnvVarRequirement](#EnvVarRequirement) is specified alongside a DockerRequirement, the environment variables must be provided to Docker using –env or –env-file and interact with the container’s preexisting environment as defined by Docker.
- Parameters:
dockerPull (Optional[Any]) –
dockerLoad (Optional[Any]) –
dockerFile (Optional[Any]) –
dockerImport (Optional[Any]) –
dockerImageId (Optional[Any]) –
dockerOutputDirectory (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.SoftwareRequirement(packages, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
A list of software packages that should be configured in the environment of the defined process.
- Parameters:
packages (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.SoftwarePackage(package, version=None, specs=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- Parameters:
package (Any) –
version (Optional[Any]) –
specs (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.Dirent(entry, entryname=None, writable=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Define a file or subdirectory that must be placed in the designated output directory prior to executing the command line tool. May be the result of executing an expression, such as building a configuration file from a template.
- Parameters:
entry (Any) –
entryname (Optional[Any]) –
writable (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.InitialWorkDirRequirement(listing, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Define a list of files and subdirectories that must be created by the workflow platform in the designated output directory prior to executing the command line tool.
- Parameters:
listing (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.EnvVarRequirement(envDef, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Define a list of environment variables which will be set in the execution environment of the tool. See EnvironmentDef for details.
- Parameters:
envDef (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.ShellCommandRequirement(extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Modify the behavior of CommandLineTool to generate a single string containing a shell command line. Each item in the argument list must be joined into a string separated by single spaces and quoted to prevent intepretation by the shell, unless CommandLineBinding for that argument contains shellQuote: false. If shellQuote: false is specified, the argument is joined into the command string without quoting, which allows the use of shell metacharacters such as | for pipes.
- Parameters:
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.ResourceRequirement(coresMin=None, coresMax=None, ramMin=None, ramMax=None, tmpdirMin=None, tmpdirMax=None, outdirMin=None, outdirMax=None, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Specify basic hardware resource requirements.
“min” is the minimum amount of a resource that must be reserved to schedule a job. If “min” cannot be satisfied, the job should not be run.
“max” is the maximum amount of a resource that the job shall be permitted to use. If a node has sufficient resources, multiple jobs may be scheduled on a single node provided each job’s “max” resource requirements are met. If a job attempts to exceed its “max” resource allocation, an implementation may deny additional resources, which may result in job failure.
If “min” is specified but “max” is not, then “max” == “min” If “max” is specified by “min” is not, then “min” == “max”.
It is an error if max < min.
It is an error if the value of any of these fields is negative.
If neither “min” nor “max” is specified for a resource, an implementation may provide a default.
- Parameters:
coresMin (Optional[Any]) –
coresMax (Optional[Any]) –
ramMin (Optional[Any]) –
ramMax (Optional[Any]) –
tmpdirMin (Optional[Any]) –
tmpdirMax (Optional[Any]) –
outdirMin (Optional[Any]) –
outdirMax (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.ExpressionToolOutputParameter(id, label=None, secondaryFiles=None, streamable=None, doc=None, outputBinding=None, format=None, type_=None, extension_fields=None, loadingOptions=None)
Bases:
OutputParameter
Define an input or output parameter to a process.
- Parameters:
id (Any) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
doc (Optional[Any]) –
outputBinding (Optional[Any]) –
format (Optional[Any]) –
type_ (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.ExpressionTool(inputs, outputs, expression, id=None, requirements=None, hints=None, label=None, doc=None, cwlVersion=None, extension_fields=None, loadingOptions=None)
Bases:
Process
Execute an expression as a Workflow step.
- Parameters:
inputs (Any) –
outputs (Any) –
expression (Any) –
id (Optional[Any]) –
requirements (Optional[Any]) –
hints (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
cwlVersion (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.WorkflowOutputParameter(id, label=None, secondaryFiles=None, streamable=None, doc=None, outputBinding=None, format=None, outputSource=None, linkMerge=None, type_=None, extension_fields=None, loadingOptions=None)
Bases:
OutputParameter
Describe an output parameter of a workflow. The parameter must be connected to one or more parameters defined in the workflow that will provide the value of the output parameter.
- Parameters:
id (Any) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
doc (Optional[Any]) –
outputBinding (Optional[Any]) –
format (Optional[Any]) –
outputSource (Optional[Any]) –
linkMerge (Optional[Any]) –
type_ (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.Sink
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_0.WorkflowStepInput(id, source=None, linkMerge=None, default=None, valueFrom=None, extension_fields=None, loadingOptions=None)
Bases:
Sink
The input of a workflow step connects an upstream parameter (from the workflow inputs, or the outputs of other workflows steps) with the input parameters of the underlying step.
## Input object
A WorkflowStepInput object must contain an id field in the form #fieldname or #prefix/fieldname. When the id field contains a slash / the field name consists of the characters following the final slash (the prefix portion may contain one or more slashes to indicate scope). This defines a field of the workflow step input object with the value of the source parameter(s).
## Merging
To merge multiple inbound data links, [MultipleInputFeatureRequirement](#MultipleInputFeatureRequirement) must be specified in the workflow or workflow step requirements.
If the sink parameter is an array, or named in a [workflow scatter](#WorkflowStep) operation, there may be multiple inbound data links listed in the source field. The values from the input links are merged depending on the method specified in the linkMerge field. If not specified, the default method is “merge_nested”.
merge_nested
The input must be an array consisting of exactly one entry for each input link. If “merge_nested” is specified with a single link, the value from the link must be wrapped in a single-item list.
merge_flattened
The source and sink parameters must be compatible types, or the source type must be compatible with single element from the “items” type of the destination array parameter.
Source parameters which are arrays are concatenated. Source parameters which are single element types are appended as single elements.
- Parameters:
id (Any) –
source (Optional[Any]) –
linkMerge (Optional[Any]) –
default (Optional[Any]) –
valueFrom (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.WorkflowStepOutput(id, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Associate an output parameter of the underlying process with a workflow parameter. The workflow parameter (given in the id field) be may be used as a source to connect with input parameters of other workflow steps, or with an output parameter of the process.
- Parameters:
id (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.WorkflowStep(id, in_, out, run, requirements=None, hints=None, label=None, doc=None, scatter=None, scatterMethod=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
A workflow step is an executable element of a workflow. It specifies the underlying process implementation (such as CommandLineTool or another Workflow) in the run field and connects the input and output parameters of the underlying process to workflow parameters.
# Scatter/gather
To use scatter/gather, [ScatterFeatureRequirement](#ScatterFeatureRequirement) must be specified in the workflow or workflow step requirements.
A “scatter” operation specifies that the associated workflow step or subworkflow should execute separately over a list of input elements. Each job making up a scatter operation is independent and may be executed concurrently.
The scatter field specifies one or more input parameters which will be scattered. An input parameter may be listed more than once. The declared type of each input parameter is implicitly becomes an array of items of the input parameter type. If a parameter is listed more than once, it becomes a nested array. As a result, upstream parameters which are connected to scattered parameters must be arrays.
All output parameter types are also implicitly wrapped in arrays. Each job in the scatter results in an entry in the output array.
If any scattered parameter runtime value is an empty array, all outputs are set to empty arrays and no work is done for the step, according to applicable scattering rules.
If scatter declares more than one input parameter, scatterMethod describes how to decompose the input into a discrete set of jobs.
- dotproduct specifies that each of the input arrays are aligned and one
element taken from each array to construct each job. It is an error if all input arrays are not the same length.
- nested_crossproduct specifies the Cartesian product of the inputs,
producing a job for every combination of the scattered inputs. The output must be nested arrays for each level of scattering, in the order that the input arrays are listed in the scatter field.
- flat_crossproduct specifies the Cartesian product of the inputs,
producing a job for every combination of the scattered inputs. The output arrays must be flattened to a single level, but otherwise listed in the order that the input arrays are listed in the scatter field.
# Subworkflows
To specify a nested workflow as part of a workflow step, [SubworkflowFeatureRequirement](#SubworkflowFeatureRequirement) must be specified in the workflow or workflow step requirements.
It is a fatal error if a workflow directly or indirectly invokes itself as a subworkflow (recursive workflows are not allowed).
- Parameters:
id (Any) –
in_ (Any) –
out (Any) –
run (Any) –
requirements (Optional[Any]) –
hints (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
scatter (Optional[Any]) –
scatterMethod (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.Workflow(inputs, outputs, steps, id=None, requirements=None, hints=None, label=None, doc=None, cwlVersion=None, extension_fields=None, loadingOptions=None)
Bases:
Process
A workflow describes a set of steps and the dependencies between those steps. When a step produces output that will be consumed by a second step, the first step is a dependency of the second step.
When there is a dependency, the workflow engine must execute the preceding step and wait for it to successfully produce output before executing the dependent step. If two steps are defined in the workflow graph that are not directly or indirectly dependent, these steps are independent, and may execute in any order or execute concurrently. A workflow is complete when all steps have been executed.
Dependencies between parameters are expressed using the source field on [workflow step input parameters](#WorkflowStepInput) and [workflow output parameters](#WorkflowOutputParameter).
The source field expresses the dependency of one parameter on another such that when a value is associated with the parameter specified by source, that value is propagated to the destination parameter. When all data links inbound to a given step are fufilled, the step is ready to execute.
## Workflow success and failure
A completed step must result in one of success, temporaryFailure or permanentFailure states. An implementation may choose to retry a step execution which resulted in temporaryFailure. An implementation may choose to either continue running other steps of a workflow, or terminate immediately upon permanentFailure.
If any step of a workflow execution results in permanentFailure, then
the workflow status is permanentFailure.
If one or more steps result in temporaryFailure and all other steps
complete success or are not executed, then the workflow status is temporaryFailure.
If all workflow steps are executed and complete with success, then the
workflow status is success.
# Extensions
[ScatterFeatureRequirement](#ScatterFeatureRequirement) and [SubworkflowFeatureRequirement](#SubworkflowFeatureRequirement) are available as standard [extensions](#Extensions_and_Metadata) to core workflow semantics.
- Parameters:
inputs (Any) –
outputs (Any) –
steps (Any) –
id (Optional[Any]) –
requirements (Optional[Any]) –
hints (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
cwlVersion (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.SubworkflowFeatureRequirement(extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Indicates that the workflow platform must support nested workflows in the run field of [WorkflowStep](#WorkflowStep).
- Parameters:
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.ScatterFeatureRequirement(extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Indicates that the workflow platform must support the scatter and scatterMethod fields of [WorkflowStep](#WorkflowStep).
- Parameters:
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.MultipleInputFeatureRequirement(extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Indicates that the workflow platform must support multiple inbound data links listed in the source field of [WorkflowStepInput](#WorkflowStepInput).
- Parameters:
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_0.StepInputExpressionRequirement(extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Indicate that the workflow platform must support the valueFrom field of [WorkflowStepInput](#WorkflowStepInput).
- Parameters:
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- cwl_utils.parser.cwl_v1_0.strtype
- cwl_utils.parser.cwl_v1_0.inttype
- cwl_utils.parser.cwl_v1_0.floattype
- cwl_utils.parser.cwl_v1_0.booltype
- cwl_utils.parser.cwl_v1_0.None_type
- cwl_utils.parser.cwl_v1_0.Any_type
- cwl_utils.parser.cwl_v1_0.PrimitiveTypeLoader
Names of salad data types (based on Avro schema declarations).
Refer to the [Avro schema declaration documentation](https://avro.apache.org/docs/current/spec.html#schemas) for detailed information.
null: no value boolean: a binary value int: 32-bit signed integer long: 64-bit signed integer float: single precision (32-bit) IEEE 754 floating-point number double: double precision (64-bit) IEEE 754 floating-point number string: Unicode character sequence
- cwl_utils.parser.cwl_v1_0.AnyLoader
The Any type validates for any non-null value.
- cwl_utils.parser.cwl_v1_0.RecordFieldLoader
- cwl_utils.parser.cwl_v1_0.RecordSchemaLoader
- cwl_utils.parser.cwl_v1_0.EnumSchemaLoader
- cwl_utils.parser.cwl_v1_0.ArraySchemaLoader
- cwl_utils.parser.cwl_v1_0.MapSchemaLoader
- cwl_utils.parser.cwl_v1_0.UnionSchemaLoader
- cwl_utils.parser.cwl_v1_0.CWLTypeLoader
Extends primitive types with the concept of a file and directory as a builtin type. File: A File object Directory: A Directory object
- cwl_utils.parser.cwl_v1_0.CWLArraySchemaLoader
- cwl_utils.parser.cwl_v1_0.CWLRecordFieldLoader
- cwl_utils.parser.cwl_v1_0.CWLRecordSchemaLoader
- cwl_utils.parser.cwl_v1_0.FileLoader
- cwl_utils.parser.cwl_v1_0.DirectoryLoader
- cwl_utils.parser.cwl_v1_0.CWLObjectTypeLoader
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_CWLObjectTypeLoader
- cwl_utils.parser.cwl_v1_0.array_of_union_of_None_type_or_CWLObjectTypeLoader
- cwl_utils.parser.cwl_v1_0.map_of_union_of_None_type_or_CWLObjectTypeLoader
- cwl_utils.parser.cwl_v1_0.CWLInputFileLoader
- cwl_utils.parser.cwl_v1_0.CWLVersionLoader
Version symbols for published CWL document versions.
- cwl_utils.parser.cwl_v1_0.ExpressionLoader
- cwl_utils.parser.cwl_v1_0.InputRecordFieldLoader
- cwl_utils.parser.cwl_v1_0.InputRecordSchemaLoader
- cwl_utils.parser.cwl_v1_0.InputEnumSchemaLoader
- cwl_utils.parser.cwl_v1_0.InputArraySchemaLoader
- cwl_utils.parser.cwl_v1_0.OutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_0.OutputRecordSchemaLoader
- cwl_utils.parser.cwl_v1_0.OutputEnumSchemaLoader
- cwl_utils.parser.cwl_v1_0.OutputArraySchemaLoader
- cwl_utils.parser.cwl_v1_0.InputParameterLoader
- cwl_utils.parser.cwl_v1_0.OutputParameterLoader
- cwl_utils.parser.cwl_v1_0.InlineJavascriptRequirementLoader
- cwl_utils.parser.cwl_v1_0.SchemaDefRequirementLoader
- cwl_utils.parser.cwl_v1_0.EnvironmentDefLoader
- cwl_utils.parser.cwl_v1_0.CommandLineBindingLoader
- cwl_utils.parser.cwl_v1_0.CommandOutputBindingLoader
- cwl_utils.parser.cwl_v1_0.CommandInputRecordFieldLoader
- cwl_utils.parser.cwl_v1_0.CommandInputRecordSchemaLoader
- cwl_utils.parser.cwl_v1_0.CommandInputEnumSchemaLoader
- cwl_utils.parser.cwl_v1_0.CommandInputArraySchemaLoader
- cwl_utils.parser.cwl_v1_0.CommandOutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_0.CommandOutputRecordSchemaLoader
- cwl_utils.parser.cwl_v1_0.CommandOutputEnumSchemaLoader
- cwl_utils.parser.cwl_v1_0.CommandOutputArraySchemaLoader
- cwl_utils.parser.cwl_v1_0.CommandInputParameterLoader
- cwl_utils.parser.cwl_v1_0.CommandOutputParameterLoader
- cwl_utils.parser.cwl_v1_0.stdoutLoader
Only valid as a type for a CommandLineTool output with no outputBinding set.
The following ``` outputs:
- an_output_name:
type: stdout
stdout: a_stdout_file
` is equivalent to `
outputs:- an_output_name:
type: File streamable: true outputBinding:
glob: a_stdout_file
If there is no stdout name provided, a random filename will be created. For example, the following ``` outputs:
- an_output_name:
type: stdout
` is equivalent to `
outputs:- an_output_name:
type: File streamable: true outputBinding:
glob: random_stdout_filenameABCDEFG
- cwl_utils.parser.cwl_v1_0.stderrLoader
Only valid as a type for a CommandLineTool output with no outputBinding set.
The following ``` outputs:
an_output_name: type: stderr
stderr: a_stderr_file
` is equivalent to `
outputs:- an_output_name:
type: File streamable: true outputBinding:
glob: a_stderr_file
If there is no stderr name provided, a random filename will be created. For example, the following ``` outputs:
- an_output_name:
type: stderr
` is equivalent to `
outputs:- an_output_name:
type: File streamable: true outputBinding:
glob: random_stderr_filenameABCDEFG
- cwl_utils.parser.cwl_v1_0.CommandLineToolLoader
- cwl_utils.parser.cwl_v1_0.DockerRequirementLoader
- cwl_utils.parser.cwl_v1_0.SoftwareRequirementLoader
- cwl_utils.parser.cwl_v1_0.SoftwarePackageLoader
- cwl_utils.parser.cwl_v1_0.DirentLoader
- cwl_utils.parser.cwl_v1_0.InitialWorkDirRequirementLoader
- cwl_utils.parser.cwl_v1_0.EnvVarRequirementLoader
- cwl_utils.parser.cwl_v1_0.ShellCommandRequirementLoader
- cwl_utils.parser.cwl_v1_0.ResourceRequirementLoader
- cwl_utils.parser.cwl_v1_0.ExpressionToolOutputParameterLoader
- cwl_utils.parser.cwl_v1_0.ExpressionToolLoader
- cwl_utils.parser.cwl_v1_0.LinkMergeMethodLoader
The input link merge method, described in [WorkflowStepInput](#WorkflowStepInput).
- cwl_utils.parser.cwl_v1_0.WorkflowOutputParameterLoader
- cwl_utils.parser.cwl_v1_0.WorkflowStepInputLoader
- cwl_utils.parser.cwl_v1_0.WorkflowStepOutputLoader
- cwl_utils.parser.cwl_v1_0.ScatterMethodLoader
The scatter method, as described in [workflow step scatter](#WorkflowStep).
- cwl_utils.parser.cwl_v1_0.WorkflowStepLoader
- cwl_utils.parser.cwl_v1_0.WorkflowLoader
- cwl_utils.parser.cwl_v1_0.SubworkflowFeatureRequirementLoader
- cwl_utils.parser.cwl_v1_0.ScatterFeatureRequirementLoader
- cwl_utils.parser.cwl_v1_0.MultipleInputFeatureRequirementLoader
- cwl_utils.parser.cwl_v1_0.StepInputExpressionRequirementLoader
- cwl_utils.parser.cwl_v1_0.array_of_strtype
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_strtype_or_array_of_strtype
- cwl_utils.parser.cwl_v1_0.uri_strtype_True_False_None_None
- cwl_utils.parser.cwl_v1_0.union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_0.array_of_union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_0.union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype_or_array_of_union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_0.typedsl_union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype_or_array_of_union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_0.array_of_RecordFieldLoader
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_array_of_RecordFieldLoader
- cwl_utils.parser.cwl_v1_0.idmap_fields_union_of_None_type_or_array_of_RecordFieldLoader
- cwl_utils.parser.cwl_v1_0.Record_nameLoader
- cwl_utils.parser.cwl_v1_0.typedsl_Record_nameLoader_2
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_strtype
- cwl_utils.parser.cwl_v1_0.uri_union_of_None_type_or_strtype_True_False_None_None
- cwl_utils.parser.cwl_v1_0.uri_array_of_strtype_True_False_None_None
- cwl_utils.parser.cwl_v1_0.Enum_nameLoader
- cwl_utils.parser.cwl_v1_0.typedsl_Enum_nameLoader_2
- cwl_utils.parser.cwl_v1_0.uri_union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype_or_array_of_union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype_False_True_2_None
- cwl_utils.parser.cwl_v1_0.Array_nameLoader
- cwl_utils.parser.cwl_v1_0.typedsl_Array_nameLoader_2
- cwl_utils.parser.cwl_v1_0.Map_nameLoader
- cwl_utils.parser.cwl_v1_0.typedsl_Map_nameLoader_2
- cwl_utils.parser.cwl_v1_0.Union_nameLoader
- cwl_utils.parser.cwl_v1_0.typedsl_Union_nameLoader_2
- cwl_utils.parser.cwl_v1_0.union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_0.array_of_union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_0.union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype_or_array_of_union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_0.uri_union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype_or_array_of_union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype_False_True_2_None
- cwl_utils.parser.cwl_v1_0.typedsl_union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype_or_array_of_union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_0.array_of_CWLRecordFieldLoader
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_array_of_CWLRecordFieldLoader
- cwl_utils.parser.cwl_v1_0.idmap_fields_union_of_None_type_or_array_of_CWLRecordFieldLoader
- cwl_utils.parser.cwl_v1_0.File_classLoader
- cwl_utils.parser.cwl_v1_0.uri_File_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_0.uri_union_of_None_type_or_strtype_False_False_None_None
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_inttype
- cwl_utils.parser.cwl_v1_0.union_of_FileLoader_or_DirectoryLoader
- cwl_utils.parser.cwl_v1_0.array_of_union_of_FileLoader_or_DirectoryLoader
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_array_of_union_of_FileLoader_or_DirectoryLoader
- cwl_utils.parser.cwl_v1_0.uri_union_of_None_type_or_strtype_True_False_None_True
- cwl_utils.parser.cwl_v1_0.Directory_classLoader
- cwl_utils.parser.cwl_v1_0.uri_Directory_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_0.union_of_strtype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_0.array_of_union_of_strtype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_strtype_or_ExpressionLoader_or_array_of_union_of_strtype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_booltype
- cwl_utils.parser.cwl_v1_0.union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_0.array_of_union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_0.union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_0.typedsl_union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_CommandLineBindingLoader
- cwl_utils.parser.cwl_v1_0.array_of_InputRecordFieldLoader
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_array_of_InputRecordFieldLoader
- cwl_utils.parser.cwl_v1_0.idmap_fields_union_of_None_type_or_array_of_InputRecordFieldLoader
- cwl_utils.parser.cwl_v1_0.uri_union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype_False_True_2_None
- cwl_utils.parser.cwl_v1_0.union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_0.array_of_union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_0.union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_0.typedsl_union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_CommandOutputBindingLoader
- cwl_utils.parser.cwl_v1_0.array_of_OutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_array_of_OutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_0.idmap_fields_union_of_None_type_or_array_of_OutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_0.uri_union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype_False_True_2_None
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_strtype_or_array_of_strtype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_0.uri_union_of_None_type_or_strtype_or_array_of_strtype_or_ExpressionLoader_True_False_None_True
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_0.typedsl_union_of_None_type_or_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_strtype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_0.uri_union_of_None_type_or_strtype_or_ExpressionLoader_True_False_None_True
- cwl_utils.parser.cwl_v1_0.array_of_InputParameterLoader
- cwl_utils.parser.cwl_v1_0.idmap_inputs_array_of_InputParameterLoader
- cwl_utils.parser.cwl_v1_0.array_of_OutputParameterLoader
- cwl_utils.parser.cwl_v1_0.idmap_outputs_array_of_OutputParameterLoader
- cwl_utils.parser.cwl_v1_0.union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader
- cwl_utils.parser.cwl_v1_0.array_of_union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_array_of_union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader
- cwl_utils.parser.cwl_v1_0.idmap_requirements_union_of_None_type_or_array_of_union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader
- cwl_utils.parser.cwl_v1_0.union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader_or_Any_type
- cwl_utils.parser.cwl_v1_0.array_of_union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader_or_Any_type
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_array_of_union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader_or_Any_type
- cwl_utils.parser.cwl_v1_0.idmap_hints_union_of_None_type_or_array_of_union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader_or_Any_type
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_CWLVersionLoader
- cwl_utils.parser.cwl_v1_0.uri_union_of_None_type_or_CWLVersionLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_0.InlineJavascriptRequirement_classLoader
- cwl_utils.parser.cwl_v1_0.uri_InlineJavascriptRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_array_of_strtype
- cwl_utils.parser.cwl_v1_0.SchemaDefRequirement_classLoader
- cwl_utils.parser.cwl_v1_0.uri_SchemaDefRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_0.union_of_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader
- cwl_utils.parser.cwl_v1_0.array_of_union_of_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_strtype_or_ExpressionLoader_or_array_of_strtype
- cwl_utils.parser.cwl_v1_0.union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_0.array_of_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_0.union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_0.typedsl_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_0.array_of_CommandInputRecordFieldLoader
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_array_of_CommandInputRecordFieldLoader
- cwl_utils.parser.cwl_v1_0.idmap_fields_union_of_None_type_or_array_of_CommandInputRecordFieldLoader
- cwl_utils.parser.cwl_v1_0.uri_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_False_True_2_None
- cwl_utils.parser.cwl_v1_0.union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_0.array_of_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_0.union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_0.typedsl_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_0.array_of_CommandOutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_array_of_CommandOutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_0.idmap_fields_union_of_None_type_or_array_of_CommandOutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_0.uri_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_False_True_2_None
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_0.typedsl_union_of_None_type_or_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_CWLTypeLoader_or_stdoutLoader_or_stderrLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_0.typedsl_union_of_None_type_or_CWLTypeLoader_or_stdoutLoader_or_stderrLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_0.CommandLineTool_classLoader
- cwl_utils.parser.cwl_v1_0.uri_CommandLineTool_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_0.array_of_CommandInputParameterLoader
- cwl_utils.parser.cwl_v1_0.idmap_inputs_array_of_CommandInputParameterLoader
- cwl_utils.parser.cwl_v1_0.array_of_CommandOutputParameterLoader
- cwl_utils.parser.cwl_v1_0.idmap_outputs_array_of_CommandOutputParameterLoader
- cwl_utils.parser.cwl_v1_0.union_of_strtype_or_ExpressionLoader_or_CommandLineBindingLoader
- cwl_utils.parser.cwl_v1_0.array_of_union_of_strtype_or_ExpressionLoader_or_CommandLineBindingLoader
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_array_of_union_of_strtype_or_ExpressionLoader_or_CommandLineBindingLoader
- cwl_utils.parser.cwl_v1_0.array_of_inttype
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_array_of_inttype
- cwl_utils.parser.cwl_v1_0.DockerRequirement_classLoader
- cwl_utils.parser.cwl_v1_0.uri_DockerRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_0.SoftwareRequirement_classLoader
- cwl_utils.parser.cwl_v1_0.uri_SoftwareRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_0.array_of_SoftwarePackageLoader
- cwl_utils.parser.cwl_v1_0.idmap_packages_array_of_SoftwarePackageLoader
- cwl_utils.parser.cwl_v1_0.uri_union_of_None_type_or_array_of_strtype_False_False_None_True
- cwl_utils.parser.cwl_v1_0.InitialWorkDirRequirement_classLoader
- cwl_utils.parser.cwl_v1_0.uri_InitialWorkDirRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_0.union_of_FileLoader_or_DirectoryLoader_or_DirentLoader_or_strtype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_0.array_of_union_of_FileLoader_or_DirectoryLoader_or_DirentLoader_or_strtype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_0.union_of_array_of_union_of_FileLoader_or_DirectoryLoader_or_DirentLoader_or_strtype_or_ExpressionLoader_or_strtype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_0.EnvVarRequirement_classLoader
- cwl_utils.parser.cwl_v1_0.uri_EnvVarRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_0.array_of_EnvironmentDefLoader
- cwl_utils.parser.cwl_v1_0.idmap_envDef_array_of_EnvironmentDefLoader
- cwl_utils.parser.cwl_v1_0.ShellCommandRequirement_classLoader
- cwl_utils.parser.cwl_v1_0.uri_ShellCommandRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_0.ResourceRequirement_classLoader
- cwl_utils.parser.cwl_v1_0.uri_ResourceRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_inttype_or_strtype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_0.typedsl_union_of_None_type_or_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_0.ExpressionTool_classLoader
- cwl_utils.parser.cwl_v1_0.uri_ExpressionTool_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_0.array_of_ExpressionToolOutputParameterLoader
- cwl_utils.parser.cwl_v1_0.idmap_outputs_array_of_ExpressionToolOutputParameterLoader
- cwl_utils.parser.cwl_v1_0.uri_union_of_None_type_or_strtype_or_array_of_strtype_False_False_1_None
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_LinkMergeMethodLoader
- cwl_utils.parser.cwl_v1_0.uri_union_of_None_type_or_strtype_or_array_of_strtype_False_False_2_None
- cwl_utils.parser.cwl_v1_0.array_of_WorkflowStepInputLoader
- cwl_utils.parser.cwl_v1_0.idmap_in__array_of_WorkflowStepInputLoader
- cwl_utils.parser.cwl_v1_0.union_of_strtype_or_WorkflowStepOutputLoader
- cwl_utils.parser.cwl_v1_0.array_of_union_of_strtype_or_WorkflowStepOutputLoader
- cwl_utils.parser.cwl_v1_0.union_of_array_of_union_of_strtype_or_WorkflowStepOutputLoader
- cwl_utils.parser.cwl_v1_0.uri_union_of_array_of_union_of_strtype_or_WorkflowStepOutputLoader_True_False_None_None
- cwl_utils.parser.cwl_v1_0.array_of_Any_type
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_array_of_Any_type
- cwl_utils.parser.cwl_v1_0.idmap_hints_union_of_None_type_or_array_of_Any_type
- cwl_utils.parser.cwl_v1_0.union_of_strtype_or_CommandLineToolLoader_or_ExpressionToolLoader_or_WorkflowLoader
- cwl_utils.parser.cwl_v1_0.uri_union_of_strtype_or_CommandLineToolLoader_or_ExpressionToolLoader_or_WorkflowLoader_False_False_None_None
- cwl_utils.parser.cwl_v1_0.uri_union_of_None_type_or_strtype_or_array_of_strtype_False_False_0_None
- cwl_utils.parser.cwl_v1_0.union_of_None_type_or_ScatterMethodLoader
- cwl_utils.parser.cwl_v1_0.uri_union_of_None_type_or_ScatterMethodLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_0.Workflow_classLoader
- cwl_utils.parser.cwl_v1_0.uri_Workflow_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_0.array_of_WorkflowOutputParameterLoader
- cwl_utils.parser.cwl_v1_0.idmap_outputs_array_of_WorkflowOutputParameterLoader
- cwl_utils.parser.cwl_v1_0.array_of_WorkflowStepLoader
- cwl_utils.parser.cwl_v1_0.union_of_array_of_WorkflowStepLoader
- cwl_utils.parser.cwl_v1_0.idmap_steps_union_of_array_of_WorkflowStepLoader
- cwl_utils.parser.cwl_v1_0.SubworkflowFeatureRequirement_classLoader
- cwl_utils.parser.cwl_v1_0.uri_SubworkflowFeatureRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_0.ScatterFeatureRequirement_classLoader
- cwl_utils.parser.cwl_v1_0.uri_ScatterFeatureRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_0.MultipleInputFeatureRequirement_classLoader
- cwl_utils.parser.cwl_v1_0.uri_MultipleInputFeatureRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_0.StepInputExpressionRequirement_classLoader
- cwl_utils.parser.cwl_v1_0.uri_StepInputExpressionRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_0.union_of_CommandLineToolLoader_or_ExpressionToolLoader_or_WorkflowLoader
- cwl_utils.parser.cwl_v1_0.array_of_union_of_CommandLineToolLoader_or_ExpressionToolLoader_or_WorkflowLoader
- cwl_utils.parser.cwl_v1_0.union_of_CommandLineToolLoader_or_ExpressionToolLoader_or_WorkflowLoader_or_array_of_union_of_CommandLineToolLoader_or_ExpressionToolLoader_or_WorkflowLoader
- cwl_utils.parser.cwl_v1_0.load_document(doc, baseuri=None, loadingOptions=None)
- Parameters:
doc (Any) –
baseuri (Optional[str]) –
loadingOptions (Optional[LoadingOptions]) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_0.load_document_with_metadata(doc, baseuri=None, loadingOptions=None, addl_metadata_fields=None)
- Parameters:
doc (Any) –
baseuri (Optional[str]) –
loadingOptions (Optional[LoadingOptions]) –
addl_metadata_fields (Optional[MutableSequence[str]]) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_0.load_document_by_string(string, uri, loadingOptions=None)
- Parameters:
string (Any) –
uri (str) –
loadingOptions (Optional[LoadingOptions]) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_0.load_document_by_yaml(yaml, uri, loadingOptions=None)
Shortcut to load via a YAML object. yaml: must be from ruamel.yaml.main.YAML.load with preserve_quotes=True
- Parameters:
yaml (Any) –
uri (str) –
loadingOptions (Optional[LoadingOptions]) –
- Return type:
Any
cwl_utils.parser.cwl_v1_0_utils
Module Contents
Functions
|
Check for identical type specifications, ignoring extra keys like inputBinding. |
|
Given a list of sinks, check if their types match with the types of their sources. |
|
Check if the source and sink types are correct. |
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 stdout and stderr type shortcuts to files. |
|
|
Load a CWL v1.0 input file from a serialized YAML string or a YAML object. |
|
Load a CWL v1.0 input file from a serialized YAML string. |
|
Load a CWL v1.0 input file from a YAML object. |
|
Return the merge flattened type of the source type. |
|
Determine the type for the given step input. |
|
Determine the type for the given step output. |
|
Determine the type for the given sourcenames. |
|
Find the process input parameter that matches one of the given sourcenames. |
Attributes
- cwl_utils.parser.cwl_v1_0_utils.SrcSink
- cwl_utils.parser.cwl_v1_0_utils.can_assign_src_to_sink(src, sink, strict=False)
Check for identical type specifications, ignoring extra keys like inputBinding.
src: admissible source types sink: admissible sink types
- 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.
- cwl_utils.parser.cwl_v1_0_utils.check_all_types(src_dict, sinks, type_dict)
Given a list of sinks, check if their types match with the types of their sources.
- Parameters:
src_dict (Dict[str, Any]) –
sinks (MutableSequence[Union[cwl_utils.parser.cwl_v1_0.WorkflowStepInput, cwl_utils.parser.cwl_v1_0.WorkflowOutputParameter]]) –
type_dict (Dict[str, Any]) –
- Return type:
Dict[str, List[SrcSink]]
- cwl_utils.parser.cwl_v1_0_utils.check_types(srctype, sinktype, linkMerge, valueFrom=None)
Check if the source and sink types are correct.
Acceptable types are “pass”, “warning”, or “exception”.
- cwl_utils.parser.cwl_v1_0_utils.content_limit_respected_read_bytes(f)
Read file content up to 64 kB as a byte array.
Truncate content for larger files.
- cwl_utils.parser.cwl_v1_0_utils.content_limit_respected_read(f)
Read file content up to 64 kB as an utf-8 encoded string.
Truncate content for larger files.
- cwl_utils.parser.cwl_v1_0_utils.convert_stdstreams_to_files(clt)
Convert stdout and stderr type shortcuts to files.
- Parameters:
- Return type:
None
- cwl_utils.parser.cwl_v1_0_utils.load_inputfile(doc, baseuri=None, loadingOptions=None)
Load a CWL v1.0 input file from a serialized YAML string or a YAML object.
- Parameters:
doc (Any) –
baseuri (Optional[str]) –
loadingOptions (Optional[cwl_utils.parser.cwl_v1_0.LoadingOptions]) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_0_utils.load_inputfile_by_string(string, uri, loadingOptions=None)
Load a CWL v1.0 input file from a serialized YAML string.
- Parameters:
string (Any) –
uri (str) –
loadingOptions (Optional[cwl_utils.parser.cwl_v1_0.LoadingOptions]) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_0_utils.load_inputfile_by_yaml(yaml, uri, loadingOptions=None)
Load a CWL v1.0 input file from a YAML object.
- Parameters:
yaml (Any) –
uri (str) –
loadingOptions (Optional[cwl_utils.parser.cwl_v1_0.LoadingOptions]) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_0_utils.merge_flatten_type(src)
Return the merge flattened type of the source type.
- Parameters:
src (Any) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_0_utils.type_for_step_input(step, in_)
Determine the type for the given step input.
- Parameters:
- Return type:
Any
- cwl_utils.parser.cwl_v1_0_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_0_utils.type_for_source(process, sourcenames, parent=None, linkMerge=None)
Determine the type for the given sourcenames.
- Parameters:
process (Union[cwl_utils.parser.cwl_v1_0.CommandLineTool, cwl_utils.parser.cwl_v1_0.Workflow, cwl_utils.parser.cwl_v1_0.ExpressionTool]) –
parent (Optional[cwl_utils.parser.cwl_v1_0.Workflow]) –
linkMerge (Optional[str]) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_0_utils.param_for_source_id(process, sourcenames, parent=None, scatter_context=None)
Find the process input parameter that matches one of the given sourcenames.
- Parameters:
process (Union[cwl_utils.parser.cwl_v1_0.CommandLineTool, cwl_utils.parser.cwl_v1_0.Workflow, cwl_utils.parser.cwl_v1_0.ExpressionTool]) –
parent (Optional[cwl_utils.parser.cwl_v1_0.Workflow]) –
scatter_context (Optional[List[Optional[Tuple[int, str]]]]) –
- Return type:
Union[List[cwl_utils.parser.cwl_v1_0.InputParameter], cwl_utils.parser.cwl_v1_0.InputParameter]
cwl_utils.parser.cwl_v1_1
Module Contents
Classes
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
A field of a record. |
|
Mark classes than have a save() and fromDoc() function. |
|
Define an enumerated type. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
A field of a record. |
|
Mark classes than have a save() and fromDoc() function. |
|
Represents a file (or group of files when secondaryFiles is provided) that |
|
Represents a directory to present to a command line tool. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
Define an input or output parameter to a process. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
A field of a record. |
|
Mark classes than have a save() and fromDoc() function. |
|
Define an enumerated type. |
|
Mark classes than have a save() and fromDoc() function. |
|
A field of a record. |
|
Mark classes than have a save() and fromDoc() function. |
|
Define an enumerated type. |
|
Mark classes than have a save() and fromDoc() function. |
|
Define an input or output parameter to a process. |
|
Define an input or output parameter to a process. |
|
A process requirement declares a prerequisite that may or must be fulfilled |
|
The base executable type in CWL is the Process object defined by the |
|
Indicates that the workflow platform must support inline Javascript expressions. |
|
Mark classes than have a save() and fromDoc() function. |
|
This field consists of an array of type definitions which must be used when |
|
Mark classes than have a save() and fromDoc() function. |
|
Specify the desired behavior for loading the listing field of |
|
Define an environment variable that will be set in the runtime environment |
|
When listed under inputBinding in the input schema, the term |
|
Describes how to generate an output parameter based on the files produced |
|
Mark classes than have a save() and fromDoc() function. |
|
A field of a record. |
|
Mark classes than have a save() and fromDoc() function. |
|
Define an enumerated type. |
|
Mark classes than have a save() and fromDoc() function. |
|
A field of a record. |
|
Mark classes than have a save() and fromDoc() function. |
|
Define an enumerated type. |
|
Mark classes than have a save() and fromDoc() function. |
|
An input parameter for a CommandLineTool. |
|
An output parameter for a CommandLineTool. |
|
This defines the schema of the CWL Command Line Tool Description document. |
|
Indicates that a workflow component should be run in a |
|
A list of software packages that should be configured in the environment of |
|
Mark classes than have a save() and fromDoc() function. |
|
Define a file or subdirectory that must be placed in the designated output |
|
Define a list of files and subdirectories that must be created by the workflow platform in the designated output directory prior to executing the command line tool. |
|
Define a list of environment variables which will be set in the |
|
Modify the behavior of CommandLineTool to generate a single string |
|
Specify basic hardware resource requirements. |
|
For implementations that support reusing output from past work (on |
|
Indicate whether a process requires outgoing IPv4/IPv6 network |
|
If inplaceUpdate is true, then an implementation supporting this |
|
Set an upper limit on the execution time of a CommandLineTool. |
|
Define an input or output parameter to a process. |
|
Define an input or output parameter to a process. |
|
An ExpressionTool is a type of Process object that can be run by itself |
|
Describe an output parameter of a workflow. The parameter must be |
|
Mark classes than have a save() and fromDoc() function. |
|
The input of a workflow step connects an upstream parameter (from the |
|
Associate an output parameter of the underlying process with a workflow |
|
A workflow step is an executable element of a workflow. It specifies the |
|
A workflow describes a set of steps and the dependencies between |
|
Indicates that the workflow platform must support nested workflows in |
|
Indicates that the workflow platform must support the scatter and |
|
Indicates that the workflow platform must support multiple inbound data links |
|
Indicate that the workflow platform must support the valueFrom field |
Functions
|
Load field. |
|
Take a type of value, and extracts the value as a string. |
|
Normalize type names to schema-salad types. |
|
Parse error messages from several loaders into one error message. |
|
|
|
Save and set $namespaces, $schemas, $base and any other metadata fields at the top level. |
|
|
|
Transform a file path into a URL with file scheme. |
|
Expand short forms into full URLs using the given namespace dictionary. |
|
Convert any URI to a relative one, obeying the scoping rules. |
|
Compute the shortname of a fully qualified identifier. |
|
|
|
|
|
|
|
Shortcut to load via a YAML object. |
Attributes
- cwl_utils.parser.cwl_v1_1.IdxType
- class cwl_utils.parser.cwl_v1_1.LoadingOptions(fetcher=None, namespaces=None, schemas=None, fileuri=None, copyfrom=None, original_doc=None, addl_metadata=None, baseuri=None, idx=None, imports=None, includes=None, no_link_check=None, container=None)
- Parameters:
fetcher (Optional[schema_salad.fetcher.Fetcher]) –
schemas (Optional[List[str]]) –
fileuri (Optional[str]) –
copyfrom (Optional[LoadingOptions]) –
original_doc (Optional[Any]) –
baseuri (Optional[str]) –
idx (Optional[IdxType]) –
imports (Optional[List[str]]) –
includes (Optional[List[str]]) –
no_link_check (Optional[bool]) –
container (Optional[str]) –
- property graph: rdflib.Graph
Generate a merged rdflib.Graph from all entries in self.schemas.
- Return type:
- idx: IdxType
- fetcher: schema_salad.fetcher.Fetcher
- cache: schema_salad.utils.CacheType
- class cwl_utils.parser.cwl_v1_1.Saveable
Bases:
abc.ABC
Mark classes than have a save() and fromDoc() function.
- abstract classmethod fromDoc(_doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
_doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- cwl_utils.parser.cwl_v1_1.load_field(val, fieldtype, baseuri, loadingOptions, lc=None)
Load field.
- Parameters:
fieldtype (_Loader) –
baseuri (str) –
loadingOptions (LoadingOptions) –
lc (Optional[List[Any]]) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_1.save_type
- cwl_utils.parser.cwl_v1_1.extract_type(val_type)
Take a type of value, and extracts the value as a string.
- Parameters:
val_type (Type[Any]) –
- Return type:
- cwl_utils.parser.cwl_v1_1.convert_typing(val_type)
Normalize type names to schema-salad types.
- cwl_utils.parser.cwl_v1_1.parse_errors(error_message)
Parse error messages from several loaders into one error message.
- cwl_utils.parser.cwl_v1_1.save(val, top=True, base_url='', relative_uris=True)
- cwl_utils.parser.cwl_v1_1.save_with_metadata(val, valLoadingOpts, top=True, base_url='', relative_uris=True)
Save and set $namespaces, $schemas, $base and any other metadata fields at the top level.
- Parameters:
val (Any) –
valLoadingOpts (LoadingOptions) –
top (bool) –
base_url (str) –
relative_uris (bool) –
- Return type:
save_type
- cwl_utils.parser.cwl_v1_1.expand_url(url, base_url, loadingOptions, scoped_id=False, vocab_term=False, scoped_ref=None)
- cwl_utils.parser.cwl_v1_1.file_uri(path, split_frag=False)
Transform a file path into a URL with file scheme.
- cwl_utils.parser.cwl_v1_1.prefix_url(url, namespaces)
Expand short forms into full URLs using the given namespace dictionary.
- cwl_utils.parser.cwl_v1_1.save_relative_uri(uri, base_url, scoped_id, ref_scope, relative_uris)
Convert any URI to a relative one, obeying the scoping rules.
- cwl_utils.parser.cwl_v1_1.shortname(inputid)
Compute the shortname of a fully qualified identifier.
- class cwl_utils.parser.cwl_v1_1.Documented
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_1.RecordField(name, type_, doc=None, extension_fields=None, loadingOptions=None)
Bases:
Documented
A field of a record.
- Parameters:
name (Any) –
type_ (Any) –
doc (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.RecordSchema(type_, fields=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- Parameters:
type_ (Any) –
fields (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.EnumSchema(symbols, type_, name=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Define an enumerated type.
- Parameters:
symbols (Any) –
type_ (Any) –
name (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.ArraySchema(items, type_, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- Parameters:
items (Any) –
type_ (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.MapSchema(type_, values, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- Parameters:
type_ (Any) –
values (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.UnionSchema(names, type_, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- Parameters:
names (Any) –
type_ (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.CWLArraySchema(items, type_, extension_fields=None, loadingOptions=None)
Bases:
ArraySchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
items (Any) –
type_ (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.CWLRecordField(name, type_, doc=None, extension_fields=None, loadingOptions=None)
Bases:
RecordField
A field of a record.
- Parameters:
name (Any) –
type_ (Any) –
doc (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.CWLRecordSchema(type_, fields=None, extension_fields=None, loadingOptions=None)
Bases:
RecordSchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
type_ (Any) –
fields (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.File(location=None, path=None, basename=None, dirname=None, nameroot=None, nameext=None, checksum=None, size=None, secondaryFiles=None, format=None, contents=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Represents a file (or group of files when secondaryFiles is provided) that will be accessible by tools using standard POSIX file system call API such as open(2) and read(2).
Files are represented as objects with class of File. File objects have a number of properties that provide metadata about the file.
The location property of a File is a URI that uniquely identifies the file. Implementations must support the file:// URI scheme and may support other schemes such as http://. The value of location may also be a relative reference, in which case it must be resolved relative to the URI of the document it appears in. Alternately to location, implementations must also accept the path property on File, which must be a filesystem path available on the same host as the CWL runner (for inputs) or the runtime environment of a command line tool execution (for command line tool outputs).
If no location or path is specified, a file object must specify contents with the UTF-8 text content of the file. This is a “file literal”. File literals do not correspond to external resources, but are created on disk with contents with when needed for a executing a tool. Where appropriate, expressions can return file literals to define new files on a runtime. The maximum size of contents is 64 kilobytes.
The basename property defines the filename on disk where the file is staged. This may differ from the resource name. If not provided, basename must be computed from the last path part of location and made available to expressions.
The secondaryFiles property is a list of File or Directory objects that must be staged in the same directory as the primary file. It is an error for file names to be duplicated in secondaryFiles.
The size property is the size in bytes of the File. It must be computed from the resource and made available to expressions. The checksum field contains a cryptographic hash of the file content for use it verifying file contents. Implementations may, at user option, enable or disable computation of the checksum field for performance or other reasons. However, the ability to compute output checksums is required to pass the CWL conformance test suite.
When executing a CommandLineTool, the files and secondary files may be staged to an arbitrary directory, but must use the value of basename for the filename. The path property must be file path in the context of the tool execution runtime (local to the compute node, or within the executing container). All computed properties should be available to expressions. File literals also must be staged and path must be set.
When collecting CommandLineTool outputs, glob matching returns file paths (with the path property) and the derived properties. This can all be modified by outputEval. Alternately, if the file cwl.output.json is present in the output, outputBinding is ignored.
File objects in the output must provide either a location URI or a path property in the context of the tool execution runtime (local to the compute node, or within the executing container).
When evaluating an ExpressionTool, file objects must be referenced via location (the expression tool does not have access to files on disk so path is meaningless) or as file literals. It is legal to return a file object with an existing location but a different basename. The loadContents field of ExpressionTool inputs behaves the same as on CommandLineTool inputs, however it is not meaningful on the outputs.
An ExpressionTool may forward file references from input to output by using the same value for location.
- Parameters:
location (Optional[Any]) –
path (Optional[Any]) –
basename (Optional[Any]) –
dirname (Optional[Any]) –
nameroot (Optional[Any]) –
nameext (Optional[Any]) –
checksum (Optional[Any]) –
size (Optional[Any]) –
secondaryFiles (Optional[Any]) –
format (Optional[Any]) –
contents (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.Directory(location=None, path=None, basename=None, listing=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Represents a directory to present to a command line tool.
Directories are represented as objects with class of Directory. Directory objects have a number of properties that provide metadata about the directory.
The location property of a Directory is a URI that uniquely identifies the directory. Implementations must support the file:// URI scheme and may support other schemes such as http://. Alternately to location, implementations must also accept the path property on Directory, which must be a filesystem path available on the same host as the CWL runner (for inputs) or the runtime environment of a command line tool execution (for command line tool outputs).
A Directory object may have a listing field. This is a list of File and Directory objects that are contained in the Directory. For each entry in listing, the basename property defines the name of the File or Subdirectory when staged to disk. If listing is not provided, the implementation must have some way of fetching the Directory listing at runtime based on the location field.
If a Directory does not have location, it is a Directory literal. A Directory literal must provide listing. Directory literals must be created on disk at runtime as needed.
The resources in a Directory literal do not need to have any implied relationship in their location. For example, a Directory listing may contain two files located on different hosts. It is the responsibility of the runtime to ensure that those files are staged to disk appropriately. Secondary files associated with files in listing must also be staged to the same Directory.
When executing a CommandLineTool, Directories must be recursively staged first and have local values of path assigend.
Directory objects in CommandLineTool output must provide either a location URI or a path property in the context of the tool execution runtime (local to the compute node, or within the executing container).
An ExpressionTool may forward file references from input to output by using the same value for location.
Name conflicts (the same basename appearing multiple times in listing or in any entry in secondaryFiles in the listing) is a fatal error.
- Parameters:
location (Optional[Any]) –
path (Optional[Any]) –
basename (Optional[Any]) –
listing (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.Labeled
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_1.Identified
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_1.LoadContents
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_1.FieldBase
Bases:
Labeled
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_1.InputFormat
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_1.OutputFormat
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_1.Parameter
Bases:
FieldBase
,Documented
,Identified
Define an input or output parameter to a process.
- class cwl_utils.parser.cwl_v1_1.InputBinding(loadContents=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- Parameters:
loadContents (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.IOSchema
Bases:
Labeled
,Documented
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_1.InputSchema
Bases:
IOSchema
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_1.OutputSchema
Bases:
IOSchema
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_1.InputRecordField(name, type_, doc=None, label=None, secondaryFiles=None, streamable=None, format=None, loadContents=None, loadListing=None, extension_fields=None, loadingOptions=None)
Bases:
CWLRecordField
,FieldBase
,InputFormat
,LoadContents
A field of a record.
- Parameters:
name (Any) –
type_ (Any) –
doc (Optional[Any]) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
format (Optional[Any]) –
loadContents (Optional[Any]) –
loadListing (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.InputRecordSchema(type_, fields=None, label=None, doc=None, name=None, extension_fields=None, loadingOptions=None)
Bases:
CWLRecordSchema
,InputSchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
type_ (Any) –
fields (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
name (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.InputEnumSchema(symbols, type_, name=None, label=None, doc=None, extension_fields=None, loadingOptions=None)
Bases:
EnumSchema
,InputSchema
Define an enumerated type.
- Parameters:
symbols (Any) –
type_ (Any) –
name (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.InputArraySchema(items, type_, label=None, doc=None, name=None, extension_fields=None, loadingOptions=None)
Bases:
CWLArraySchema
,InputSchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
items (Any) –
type_ (Any) –
label (Optional[Any]) –
doc (Optional[Any]) –
name (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.OutputRecordField(name, type_, doc=None, label=None, secondaryFiles=None, streamable=None, format=None, extension_fields=None, loadingOptions=None)
Bases:
CWLRecordField
,FieldBase
,OutputFormat
A field of a record.
- Parameters:
name (Any) –
type_ (Any) –
doc (Optional[Any]) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
format (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.OutputRecordSchema(type_, fields=None, label=None, doc=None, name=None, extension_fields=None, loadingOptions=None)
Bases:
CWLRecordSchema
,OutputSchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
type_ (Any) –
fields (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
name (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.OutputEnumSchema(symbols, type_, name=None, label=None, doc=None, extension_fields=None, loadingOptions=None)
Bases:
EnumSchema
,OutputSchema
Define an enumerated type.
- Parameters:
symbols (Any) –
type_ (Any) –
name (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.OutputArraySchema(items, type_, label=None, doc=None, name=None, extension_fields=None, loadingOptions=None)
Bases:
CWLArraySchema
,OutputSchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
items (Any) –
type_ (Any) –
label (Optional[Any]) –
doc (Optional[Any]) –
name (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.InputParameter
Bases:
Parameter
,InputFormat
,LoadContents
Define an input or output parameter to a process.
- class cwl_utils.parser.cwl_v1_1.OutputParameter
Bases:
Parameter
,OutputFormat
Define an input or output parameter to a process.
- class cwl_utils.parser.cwl_v1_1.ProcessRequirement
Bases:
Saveable
A process requirement declares a prerequisite that may or must be fulfilled before executing a process. See [Process.hints](#process) and [Process.requirements](#process).
Process requirements are the primary mechanism for specifying extensions to the CWL core specification.
- class cwl_utils.parser.cwl_v1_1.Process
Bases:
Identified
,Labeled
,Documented
The base executable type in CWL is the Process object defined by the document. Note that the Process object is abstract and cannot be directly executed.
- class cwl_utils.parser.cwl_v1_1.InlineJavascriptRequirement(expressionLib=None, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Indicates that the workflow platform must support inline Javascript expressions. If this requirement is not present, the workflow platform must not perform expression interpolatation.
- Parameters:
expressionLib (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.CommandInputSchema
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_1.SchemaDefRequirement(types, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
This field consists of an array of type definitions which must be used when interpreting the inputs and outputs fields. When a type field contain a IRI, the implementation must check if the type is defined in schemaDefs and use that definition. If the type is not found in schemaDefs, it is an error. The entries in schemaDefs must be processed in the order listed such that later schema definitions may refer to earlier schema definitions.
- Parameters:
types (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.SecondaryFileSchema(pattern, required=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- Parameters:
pattern (Any) –
required (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.LoadListingRequirement(loadListing=None, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Specify the desired behavior for loading the listing field of a Directory object for use by expressions.
- Parameters:
loadListing (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.EnvironmentDef(envName, envValue, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Define an environment variable that will be set in the runtime environment by the workflow platform when executing the command line tool. May be the result of executing an expression, such as getting a parameter from input.
- Parameters:
envName (Any) –
envValue (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.CommandLineBinding(loadContents=None, position=None, prefix=None, separate=None, itemSeparator=None, valueFrom=None, shellQuote=None, extension_fields=None, loadingOptions=None)
Bases:
InputBinding
When listed under inputBinding in the input schema, the term “value” refers to the the corresponding value in the input object. For binding objects listed in CommandLineTool.arguments, the term “value” refers to the effective value after evaluating valueFrom.
The binding behavior when building the command line depends on the data type of the value. If there is a mismatch between the type described by the input schema and the effective value, such as resulting from an expression evaluation, an implementation must use the data type of the effective value.
string: Add prefix and the string to the command line.
number: Add prefix and decimal representation to command line.
- boolean: If true, add prefix to the command line. If false, add
nothing.
File: Add prefix and the value of [File.path](#File) to the command line.
Directory: Add prefix and the value of [Directory.path](#Directory) to the command line.
- array: If itemSeparator is specified, add prefix and the join
the array into a single string with itemSeparator separating the items. Otherwise first add prefix, then recursively process individual elements. If the array is empty, it does not add anything to command line.
- object: Add prefix only, and recursively add object fields for
which inputBinding is specified.
null: Add nothing.
- Parameters:
loadContents (Optional[Any]) –
position (Optional[Any]) –
prefix (Optional[Any]) –
separate (Optional[Any]) –
itemSeparator (Optional[Any]) –
valueFrom (Optional[Any]) –
shellQuote (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.CommandOutputBinding(loadContents=None, loadListing=None, glob=None, outputEval=None, extension_fields=None, loadingOptions=None)
Bases:
LoadContents
Describes how to generate an output parameter based on the files produced by a CommandLineTool.
The output parameter value is generated by applying these operations in the following order:
glob
loadContents
outputEval
secondaryFiles
- Parameters:
loadContents (Optional[Any]) –
loadListing (Optional[Any]) –
glob (Optional[Any]) –
outputEval (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.CommandLineBindable(inputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- Parameters:
inputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.CommandInputRecordField(name, type_, doc=None, label=None, secondaryFiles=None, streamable=None, format=None, loadContents=None, loadListing=None, inputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
InputRecordField
,CommandLineBindable
A field of a record.
- Parameters:
name (Any) –
type_ (Any) –
doc (Optional[Any]) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
format (Optional[Any]) –
loadContents (Optional[Any]) –
loadListing (Optional[Any]) –
inputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.CommandInputRecordSchema(type_, fields=None, label=None, doc=None, name=None, inputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
InputRecordSchema
,CommandInputSchema
,CommandLineBindable
Mark classes than have a save() and fromDoc() function.
- Parameters:
type_ (Any) –
fields (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
name (Optional[Any]) –
inputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.CommandInputEnumSchema(symbols, type_, name=None, label=None, doc=None, inputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
InputEnumSchema
,CommandInputSchema
,CommandLineBindable
Define an enumerated type.
- Parameters:
symbols (Any) –
type_ (Any) –
name (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
inputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.CommandInputArraySchema(items, type_, label=None, doc=None, name=None, inputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
InputArraySchema
,CommandInputSchema
,CommandLineBindable
Mark classes than have a save() and fromDoc() function.
- Parameters:
items (Any) –
type_ (Any) –
label (Optional[Any]) –
doc (Optional[Any]) –
name (Optional[Any]) –
inputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.CommandOutputRecordField(name, type_, doc=None, label=None, secondaryFiles=None, streamable=None, format=None, outputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
OutputRecordField
A field of a record.
- Parameters:
name (Any) –
type_ (Any) –
doc (Optional[Any]) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
format (Optional[Any]) –
outputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.CommandOutputRecordSchema(type_, fields=None, label=None, doc=None, name=None, extension_fields=None, loadingOptions=None)
Bases:
OutputRecordSchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
type_ (Any) –
fields (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
name (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.CommandOutputEnumSchema(symbols, type_, name=None, label=None, doc=None, extension_fields=None, loadingOptions=None)
Bases:
OutputEnumSchema
Define an enumerated type.
- Parameters:
symbols (Any) –
type_ (Any) –
name (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.CommandOutputArraySchema(items, type_, label=None, doc=None, name=None, extension_fields=None, loadingOptions=None)
Bases:
OutputArraySchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
items (Any) –
type_ (Any) –
label (Optional[Any]) –
doc (Optional[Any]) –
name (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.CommandInputParameter(type_, label=None, secondaryFiles=None, streamable=None, doc=None, id=None, format=None, loadContents=None, loadListing=None, default=None, inputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
InputParameter
An input parameter for a CommandLineTool.
- Parameters:
type_ (Any) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
doc (Optional[Any]) –
id (Optional[Any]) –
format (Optional[Any]) –
loadContents (Optional[Any]) –
loadListing (Optional[Any]) –
default (Optional[Any]) –
inputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.CommandOutputParameter(type_, label=None, secondaryFiles=None, streamable=None, doc=None, id=None, format=None, outputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
OutputParameter
An output parameter for a CommandLineTool.
- Parameters:
type_ (Any) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
doc (Optional[Any]) –
id (Optional[Any]) –
format (Optional[Any]) –
outputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.CommandLineTool(inputs, outputs, id=None, label=None, doc=None, requirements=None, hints=None, cwlVersion=None, baseCommand=None, arguments=None, stdin=None, stderr=None, stdout=None, successCodes=None, temporaryFailCodes=None, permanentFailCodes=None, extension_fields=None, loadingOptions=None)
Bases:
Process
This defines the schema of the CWL Command Line Tool Description document.
- Parameters:
inputs (Any) –
outputs (Any) –
id (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
requirements (Optional[Any]) –
hints (Optional[Any]) –
cwlVersion (Optional[Any]) –
baseCommand (Optional[Any]) –
arguments (Optional[Any]) –
stdin (Optional[Any]) –
stderr (Optional[Any]) –
stdout (Optional[Any]) –
successCodes (Optional[Any]) –
temporaryFailCodes (Optional[Any]) –
permanentFailCodes (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.DockerRequirement(dockerPull=None, dockerLoad=None, dockerFile=None, dockerImport=None, dockerImageId=None, dockerOutputDirectory=None, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Indicates that a workflow component should be run in a [Docker](http://docker.com) or Docker-compatible (such as [Singularity](https://www.sylabs.io/) and [udocker](https://github.com/indigo-dc/udocker)) container environment and specifies how to fetch or build the image.
If a CommandLineTool lists DockerRequirement under hints (or requirements), it may (or must) be run in the specified Docker container.
The platform must first acquire or install the correct Docker image as specified by dockerPull, dockerImport, dockerLoad or dockerFile.
The platform must execute the tool in the container using docker run with the appropriate Docker image and tool command line.
The workflow platform may provide input files and the designated output directory through the use of volume bind mounts. The platform should rewrite file paths in the input object to correspond to the Docker bind mounted locations. That is, the platform should rewrite values in the parameter context such as runtime.outdir, runtime.tmpdir and others to be valid paths within the container. The platform must ensure that runtime.outdir and runtime.tmpdir are distinct directories.
When running a tool contained in Docker, the workflow platform must not assume anything about the contents of the Docker container, such as the presence or absence of specific software, except to assume that the generated command line represents a valid command within the runtime environment of the container.
A container image may specify an [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) and/or [CMD](https://docs.docker.com/engine/reference/builder/#cmd). Command line arguments will be appended after all elements of ENTRYPOINT, and will override all elements specified using CMD (in other words, CMD is only used when the CommandLineTool definition produces an empty command line).
Use of implicit ENTRYPOINT or CMD are discouraged due to reproducibility concerns of the implicit hidden execution point (For further discussion, see [https://doi.org/10.12688/f1000research.15140.1](https://doi.org/10.12688/f1000research.15140.1)). Portable CommandLineTool wrappers in which use of a container is optional must not rely on ENTRYPOINT or CMD. CommandLineTools which do rely on ENTRYPOINT or CMD must list DockerRequirement in the requirements section.
## Interaction with other requirements
If [EnvVarRequirement](#EnvVarRequirement) is specified alongside a DockerRequirement, the environment variables must be provided to Docker using –env or –env-file and interact with the container’s preexisting environment as defined by Docker.
- Parameters:
dockerPull (Optional[Any]) –
dockerLoad (Optional[Any]) –
dockerFile (Optional[Any]) –
dockerImport (Optional[Any]) –
dockerImageId (Optional[Any]) –
dockerOutputDirectory (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.SoftwareRequirement(packages, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
A list of software packages that should be configured in the environment of the defined process.
- Parameters:
packages (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.SoftwarePackage(package, version=None, specs=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- Parameters:
package (Any) –
version (Optional[Any]) –
specs (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.Dirent(entry, entryname=None, writable=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Define a file or subdirectory that must be placed in the designated output directory prior to executing the command line tool. May be the result of executing an expression, such as building a configuration file from a template.
- Parameters:
entry (Any) –
entryname (Optional[Any]) –
writable (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.InitialWorkDirRequirement(listing, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Define a list of files and subdirectories that must be created by the workflow platform in the designated output directory prior to executing the command line tool.
- Parameters:
listing (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.EnvVarRequirement(envDef, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Define a list of environment variables which will be set in the execution environment of the tool. See EnvironmentDef for details.
- Parameters:
envDef (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.ShellCommandRequirement(extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Modify the behavior of CommandLineTool to generate a single string containing a shell command line. Each item in the argument list must be joined into a string separated by single spaces and quoted to prevent intepretation by the shell, unless CommandLineBinding for that argument contains shellQuote: false. If shellQuote: false is specified, the argument is joined into the command string without quoting, which allows the use of shell metacharacters such as | for pipes.
- Parameters:
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.ResourceRequirement(coresMin=None, coresMax=None, ramMin=None, ramMax=None, tmpdirMin=None, tmpdirMax=None, outdirMin=None, outdirMax=None, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Specify basic hardware resource requirements.
“min” is the minimum amount of a resource that must be reserved to schedule a job. If “min” cannot be satisfied, the job should not be run.
“max” is the maximum amount of a resource that the job shall be permitted to use. If a node has sufficient resources, multiple jobs may be scheduled on a single node provided each job’s “max” resource requirements are met. If a job attempts to exceed its “max” resource allocation, an implementation may deny additional resources, which may result in job failure.
If “min” is specified but “max” is not, then “max” == “min” If “max” is specified by “min” is not, then “min” == “max”.
It is an error if max < min.
It is an error if the value of any of these fields is negative.
If neither “min” nor “max” is specified for a resource, use the default values below.
- Parameters:
coresMin (Optional[Any]) –
coresMax (Optional[Any]) –
ramMin (Optional[Any]) –
ramMax (Optional[Any]) –
tmpdirMin (Optional[Any]) –
tmpdirMax (Optional[Any]) –
outdirMin (Optional[Any]) –
outdirMax (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.WorkReuse(enableReuse, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
For implementations that support reusing output from past work (on the assumption that same code and same input produce same results), control whether to enable or disable the reuse behavior for a particular tool or step (to accomodate situations where that assumption is incorrect). A reused step is not executed but instead returns the same output as the original execution.
If enableReuse is not specified, correct tools should assume it is enabled by default.
- Parameters:
enableReuse (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.NetworkAccess(networkAccess, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Indicate whether a process requires outgoing IPv4/IPv6 network access. Choice of IPv4 or IPv6 is implementation and site specific, correct tools must support both.
If networkAccess is false or not specified, tools must not assume network access, except for localhost (the loopback device).
If networkAccess is true, the tool must be able to make outgoing connections to network resources. Resources may be on a private subnet or the public Internet. However, implementations and sites may apply their own security policies to restrict what is accessible by the tool.
Enabling network access does not imply a publically routable IP address or the ability to accept inbound connections.
- Parameters:
networkAccess (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.InplaceUpdateRequirement(inplaceUpdate, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
If inplaceUpdate is true, then an implementation supporting this feature may permit tools to directly update files with writable: true in InitialWorkDirRequirement. That is, as an optimization, files may be destructively modified in place as opposed to copied and updated.
An implementation must ensure that only one workflow step may access a writable file at a time. It is an error if a file which is writable by one workflow step file is accessed (for reading or writing) by any other workflow step running independently. However, a file which has been updated in a previous completed step may be used as input to multiple steps, provided it is read-only in every step.
Workflow steps which modify a file must produce the modified file as output. Downstream steps which futher process the file must use the output of previous steps, and not refer to a common input (this is necessary for both ordering and correctness).
Workflow authors should provide this in the hints section. The intent of this feature is that workflows produce the same results whether or not InplaceUpdateRequirement is supported by the implementation, and this feature is primarily available as an optimization for particular environments.
Users and implementers should be aware that workflows that destructively modify inputs may not be repeatable or reproducible. In particular, enabling this feature implies that WorkReuse should not be enabled.
- Parameters:
inplaceUpdate (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.ToolTimeLimit(timelimit, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Set an upper limit on the execution time of a CommandLineTool. A CommandLineTool whose execution duration exceeds the time limit may be preemptively terminated and considered failed. May also be used by batch systems to make scheduling decisions. The execution duration excludes external operations, such as staging of files, pulling a docker image etc, and only counts wall-time for the execution of the command line itself.
- Parameters:
timelimit (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.ExpressionToolOutputParameter(type_, label=None, secondaryFiles=None, streamable=None, doc=None, id=None, format=None, extension_fields=None, loadingOptions=None)
Bases:
OutputParameter
Define an input or output parameter to a process.
- Parameters:
type_ (Any) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
doc (Optional[Any]) –
id (Optional[Any]) –
format (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.WorkflowInputParameter(type_, label=None, secondaryFiles=None, streamable=None, doc=None, id=None, format=None, loadContents=None, loadListing=None, default=None, inputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
InputParameter
Define an input or output parameter to a process.
- Parameters:
type_ (Any) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
doc (Optional[Any]) –
id (Optional[Any]) –
format (Optional[Any]) –
loadContents (Optional[Any]) –
loadListing (Optional[Any]) –
default (Optional[Any]) –
inputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.ExpressionTool(inputs, outputs, expression, id=None, label=None, doc=None, requirements=None, hints=None, cwlVersion=None, extension_fields=None, loadingOptions=None)
Bases:
Process
An ExpressionTool is a type of Process object that can be run by itself or as a Workflow step. It executes a pure Javascript expression that has access to the same input parameters as a workflow. It is meant to be used sparingly as a way to isolate complex Javascript expressions that need to operate on input data and produce some result; perhaps just a rearrangement of the inputs. No Docker software container is required or allowed.
- Parameters:
inputs (Any) –
outputs (Any) –
expression (Any) –
id (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
requirements (Optional[Any]) –
hints (Optional[Any]) –
cwlVersion (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.WorkflowOutputParameter(type_, label=None, secondaryFiles=None, streamable=None, doc=None, id=None, format=None, outputSource=None, linkMerge=None, extension_fields=None, loadingOptions=None)
Bases:
OutputParameter
Describe an output parameter of a workflow. The parameter must be connected to one or more parameters defined in the workflow that will provide the value of the output parameter. It is legal to connect a WorkflowInputParameter to a WorkflowOutputParameter.
- Parameters:
type_ (Any) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
doc (Optional[Any]) –
id (Optional[Any]) –
format (Optional[Any]) –
outputSource (Optional[Any]) –
linkMerge (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.Sink
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_1.WorkflowStepInput(id=None, source=None, linkMerge=None, loadContents=None, loadListing=None, label=None, default=None, valueFrom=None, extension_fields=None, loadingOptions=None)
Bases:
Identified
,Sink
,LoadContents
,Labeled
The input of a workflow step connects an upstream parameter (from the workflow inputs, or the outputs of other workflows steps) with the input parameters of the process specified by the run field. Only input parameters declared by the target process will be passed through at runtime to the process though additonal parameters may be specified (for use within valueFrom expressions for instance) - unconnected or unused parameters do not represent an error condition.
## Input object
A WorkflowStepInput object must contain an id field in the form #fieldname or #prefix/fieldname. When the id field contains a slash / the field name consists of the characters following the final slash (the prefix portion may contain one or more slashes to indicate scope). This defines a field of the workflow step input object with the value of the source parameter(s).
## Merging
To merge multiple inbound data links, [MultipleInputFeatureRequirement](#MultipleInputFeatureRequirement) must be specified in the workflow or workflow step requirements.
If the sink parameter is an array, or named in a [workflow scatter](#WorkflowStep) operation, there may be multiple inbound data links listed in the source field. The values from the input links are merged depending on the method specified in the linkMerge field. If not specified, the default method is “merge_nested”.
merge_nested
The input must be an array consisting of exactly one entry for each input link. If “merge_nested” is specified with a single link, the value from the link must be wrapped in a single-item list.
merge_flattened
The source and sink parameters must be compatible types, or the source type must be compatible with single element from the “items” type of the destination array parameter.
Source parameters which are arrays are concatenated. Source parameters which are single element types are appended as single elements.
- Parameters:
id (Optional[Any]) –
source (Optional[Any]) –
linkMerge (Optional[Any]) –
loadContents (Optional[Any]) –
loadListing (Optional[Any]) –
label (Optional[Any]) –
default (Optional[Any]) –
valueFrom (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.WorkflowStepOutput(id=None, extension_fields=None, loadingOptions=None)
Bases:
Identified
Associate an output parameter of the underlying process with a workflow parameter. The workflow parameter (given in the id field) be may be used as a source to connect with input parameters of other workflow steps, or with an output parameter of the process.
A unique identifier for this workflow output parameter. This is the identifier to use in the source field of WorkflowStepInput to connect the output value to downstream parameters.
- Parameters:
id (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.WorkflowStep(in_, out, run, id=None, label=None, doc=None, requirements=None, hints=None, scatter=None, scatterMethod=None, extension_fields=None, loadingOptions=None)
Bases:
Identified
,Labeled
,Documented
A workflow step is an executable element of a workflow. It specifies the underlying process implementation (such as CommandLineTool or another Workflow) in the run field and connects the input and output parameters of the underlying process to workflow parameters.
# Scatter/gather
To use scatter/gather, [ScatterFeatureRequirement](#ScatterFeatureRequirement) must be specified in the workflow or workflow step requirements.
A “scatter” operation specifies that the associated workflow step or subworkflow should execute separately over a list of input elements. Each job making up a scatter operation is independent and may be executed concurrently.
The scatter field specifies one or more input parameters which will be scattered. An input parameter may be listed more than once. The declared type of each input parameter is implicitly becomes an array of items of the input parameter type. If a parameter is listed more than once, it becomes a nested array. As a result, upstream parameters which are connected to scattered parameters must be arrays.
All output parameter types are also implicitly wrapped in arrays. Each job in the scatter results in an entry in the output array.
If any scattered parameter runtime value is an empty array, all outputs are set to empty arrays and no work is done for the step, according to applicable scattering rules.
If scatter declares more than one input parameter, scatterMethod describes how to decompose the input into a discrete set of jobs.
- dotproduct specifies that each of the input arrays are aligned and one
element taken from each array to construct each job. It is an error if all input arrays are not the same length.
- nested_crossproduct specifies the Cartesian product of the inputs,
producing a job for every combination of the scattered inputs. The output must be nested arrays for each level of scattering, in the order that the input arrays are listed in the scatter field.
- flat_crossproduct specifies the Cartesian product of the inputs,
producing a job for every combination of the scattered inputs. The output arrays must be flattened to a single level, but otherwise listed in the order that the input arrays are listed in the scatter field.
# Subworkflows
To specify a nested workflow as part of a workflow step, [SubworkflowFeatureRequirement](#SubworkflowFeatureRequirement) must be specified in the workflow or workflow step requirements.
It is a fatal error if a workflow directly or indirectly invokes itself as a subworkflow (recursive workflows are not allowed).
- Parameters:
in_ (Any) –
out (Any) –
run (Any) –
id (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
requirements (Optional[Any]) –
hints (Optional[Any]) –
scatter (Optional[Any]) –
scatterMethod (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.Workflow(inputs, outputs, steps, id=None, label=None, doc=None, requirements=None, hints=None, cwlVersion=None, extension_fields=None, loadingOptions=None)
Bases:
Process
A workflow describes a set of steps and the dependencies between those steps. When a step produces output that will be consumed by a second step, the first step is a dependency of the second step.
When there is a dependency, the workflow engine must execute the preceding step and wait for it to successfully produce output before executing the dependent step. If two steps are defined in the workflow graph that are not directly or indirectly dependent, these steps are independent, and may execute in any order or execute concurrently. A workflow is complete when all steps have been executed.
Dependencies between parameters are expressed using the source field on [workflow step input parameters](#WorkflowStepInput) and [workflow output parameters](#WorkflowOutputParameter).
The source field expresses the dependency of one parameter on another such that when a value is associated with the parameter specified by source, that value is propagated to the destination parameter. When all data links inbound to a given step are fufilled, the step is ready to execute.
## Workflow success and failure
A completed step must result in one of success, temporaryFailure or permanentFailure states. An implementation may choose to retry a step execution which resulted in temporaryFailure. An implementation may choose to either continue running other steps of a workflow, or terminate immediately upon permanentFailure.
If any step of a workflow execution results in permanentFailure, then
the workflow status is permanentFailure.
If one or more steps result in temporaryFailure and all other steps
complete success or are not executed, then the workflow status is temporaryFailure.
If all workflow steps are executed and complete with success, then the
workflow status is success.
# Extensions
[ScatterFeatureRequirement](#ScatterFeatureRequirement) and [SubworkflowFeatureRequirement](#SubworkflowFeatureRequirement) are available as standard [extensions](#Extensions_and_Metadata) to core workflow semantics.
- Parameters:
inputs (Any) –
outputs (Any) –
steps (Any) –
id (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
requirements (Optional[Any]) –
hints (Optional[Any]) –
cwlVersion (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.SubworkflowFeatureRequirement(extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Indicates that the workflow platform must support nested workflows in the run field of [WorkflowStep](#WorkflowStep).
- Parameters:
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.ScatterFeatureRequirement(extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Indicates that the workflow platform must support the scatter and scatterMethod fields of [WorkflowStep](#WorkflowStep).
- Parameters:
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.MultipleInputFeatureRequirement(extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Indicates that the workflow platform must support multiple inbound data links listed in the source field of [WorkflowStepInput](#WorkflowStepInput).
- Parameters:
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_1.StepInputExpressionRequirement(extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Indicate that the workflow platform must support the valueFrom field of [WorkflowStepInput](#WorkflowStepInput).
- Parameters:
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- cwl_utils.parser.cwl_v1_1.strtype
- cwl_utils.parser.cwl_v1_1.inttype
- cwl_utils.parser.cwl_v1_1.floattype
- cwl_utils.parser.cwl_v1_1.booltype
- cwl_utils.parser.cwl_v1_1.None_type
- cwl_utils.parser.cwl_v1_1.Any_type
- cwl_utils.parser.cwl_v1_1.PrimitiveTypeLoader
Names of salad data types (based on Avro schema declarations).
Refer to the [Avro schema declaration documentation](https://avro.apache.org/docs/current/spec.html#schemas) for detailed information.
null: no value boolean: a binary value int: 32-bit signed integer long: 64-bit signed integer float: single precision (32-bit) IEEE 754 floating-point number double: double precision (64-bit) IEEE 754 floating-point number string: Unicode character sequence
- cwl_utils.parser.cwl_v1_1.AnyLoader
The Any type validates for any non-null value.
- cwl_utils.parser.cwl_v1_1.RecordFieldLoader
- cwl_utils.parser.cwl_v1_1.RecordSchemaLoader
- cwl_utils.parser.cwl_v1_1.EnumSchemaLoader
- cwl_utils.parser.cwl_v1_1.ArraySchemaLoader
- cwl_utils.parser.cwl_v1_1.MapSchemaLoader
- cwl_utils.parser.cwl_v1_1.UnionSchemaLoader
- cwl_utils.parser.cwl_v1_1.CWLTypeLoader
Extends primitive types with the concept of a file and directory as a builtin type. File: A File object Directory: A Directory object
- cwl_utils.parser.cwl_v1_1.CWLArraySchemaLoader
- cwl_utils.parser.cwl_v1_1.CWLRecordFieldLoader
- cwl_utils.parser.cwl_v1_1.CWLRecordSchemaLoader
- cwl_utils.parser.cwl_v1_1.FileLoader
- cwl_utils.parser.cwl_v1_1.DirectoryLoader
- cwl_utils.parser.cwl_v1_1.CWLObjectTypeLoader
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_CWLObjectTypeLoader
- cwl_utils.parser.cwl_v1_1.array_of_union_of_None_type_or_CWLObjectTypeLoader
- cwl_utils.parser.cwl_v1_1.map_of_union_of_None_type_or_CWLObjectTypeLoader
- cwl_utils.parser.cwl_v1_1.InlineJavascriptRequirementLoader
- cwl_utils.parser.cwl_v1_1.SchemaDefRequirementLoader
- cwl_utils.parser.cwl_v1_1.LoadListingRequirementLoader
- cwl_utils.parser.cwl_v1_1.DockerRequirementLoader
- cwl_utils.parser.cwl_v1_1.SoftwareRequirementLoader
- cwl_utils.parser.cwl_v1_1.InitialWorkDirRequirementLoader
- cwl_utils.parser.cwl_v1_1.EnvVarRequirementLoader
- cwl_utils.parser.cwl_v1_1.ShellCommandRequirementLoader
- cwl_utils.parser.cwl_v1_1.ResourceRequirementLoader
- cwl_utils.parser.cwl_v1_1.WorkReuseLoader
- cwl_utils.parser.cwl_v1_1.NetworkAccessLoader
- cwl_utils.parser.cwl_v1_1.InplaceUpdateRequirementLoader
- cwl_utils.parser.cwl_v1_1.ToolTimeLimitLoader
- cwl_utils.parser.cwl_v1_1.SubworkflowFeatureRequirementLoader
- cwl_utils.parser.cwl_v1_1.ScatterFeatureRequirementLoader
- cwl_utils.parser.cwl_v1_1.MultipleInputFeatureRequirementLoader
- cwl_utils.parser.cwl_v1_1.StepInputExpressionRequirementLoader
- cwl_utils.parser.cwl_v1_1.union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_LoadListingRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_WorkReuseLoader_or_NetworkAccessLoader_or_InplaceUpdateRequirementLoader_or_ToolTimeLimitLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader
- cwl_utils.parser.cwl_v1_1.array_of_union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_LoadListingRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_WorkReuseLoader_or_NetworkAccessLoader_or_InplaceUpdateRequirementLoader_or_ToolTimeLimitLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_array_of_union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_LoadListingRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_WorkReuseLoader_or_NetworkAccessLoader_or_InplaceUpdateRequirementLoader_or_ToolTimeLimitLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader_or_CWLObjectTypeLoader
- cwl_utils.parser.cwl_v1_1.map_of_union_of_None_type_or_array_of_union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_LoadListingRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_WorkReuseLoader_or_NetworkAccessLoader_or_InplaceUpdateRequirementLoader_or_ToolTimeLimitLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader_or_CWLObjectTypeLoader
- cwl_utils.parser.cwl_v1_1.CWLInputFileLoader
- cwl_utils.parser.cwl_v1_1.CWLVersionLoader
Version symbols for published CWL document versions.
- cwl_utils.parser.cwl_v1_1.LoadListingEnumLoader
Specify the desired behavior for loading the listing field of a Directory object for use by expressions.
no_listing: Do not load the directory listing. shallow_listing: Only load the top level listing, do not recurse into subdirectories. deep_listing: Load the directory listing and recursively load all subdirectories as well.
- cwl_utils.parser.cwl_v1_1.ExpressionLoader
- cwl_utils.parser.cwl_v1_1.InputBindingLoader
- cwl_utils.parser.cwl_v1_1.InputRecordFieldLoader
- cwl_utils.parser.cwl_v1_1.InputRecordSchemaLoader
- cwl_utils.parser.cwl_v1_1.InputEnumSchemaLoader
- cwl_utils.parser.cwl_v1_1.InputArraySchemaLoader
- cwl_utils.parser.cwl_v1_1.OutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_1.OutputRecordSchemaLoader
- cwl_utils.parser.cwl_v1_1.OutputEnumSchemaLoader
- cwl_utils.parser.cwl_v1_1.OutputArraySchemaLoader
- cwl_utils.parser.cwl_v1_1.SecondaryFileSchemaLoader
- cwl_utils.parser.cwl_v1_1.EnvironmentDefLoader
- cwl_utils.parser.cwl_v1_1.CommandLineBindingLoader
- cwl_utils.parser.cwl_v1_1.CommandOutputBindingLoader
- cwl_utils.parser.cwl_v1_1.CommandLineBindableLoader
- cwl_utils.parser.cwl_v1_1.CommandInputRecordFieldLoader
- cwl_utils.parser.cwl_v1_1.CommandInputRecordSchemaLoader
- cwl_utils.parser.cwl_v1_1.CommandInputEnumSchemaLoader
- cwl_utils.parser.cwl_v1_1.CommandInputArraySchemaLoader
- cwl_utils.parser.cwl_v1_1.CommandOutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_1.CommandOutputRecordSchemaLoader
- cwl_utils.parser.cwl_v1_1.CommandOutputEnumSchemaLoader
- cwl_utils.parser.cwl_v1_1.CommandOutputArraySchemaLoader
- cwl_utils.parser.cwl_v1_1.CommandInputParameterLoader
- cwl_utils.parser.cwl_v1_1.CommandOutputParameterLoader
- cwl_utils.parser.cwl_v1_1.stdinLoader
Only valid as a type for a CommandLineTool input with no inputBinding set. stdin must not be specified at the CommandLineTool level.
The following ``` inputs:
an_input_name: type: stdin
` is equivalent to `
inputs:- an_input_name:
type: File streamable: true
- cwl_utils.parser.cwl_v1_1.stdoutLoader
Only valid as a type for a CommandLineTool output with no outputBinding set.
The following ``` outputs:
- an_output_name:
type: stdout
stdout: a_stdout_file
` is equivalent to `
outputs:- an_output_name:
type: File streamable: true outputBinding:
glob: a_stdout_file
If there is no stdout name provided, a random filename will be created. For example, the following ``` outputs:
- an_output_name:
type: stdout
` is equivalent to `
outputs:- an_output_name:
type: File streamable: true outputBinding:
glob: random_stdout_filenameABCDEFG
- cwl_utils.parser.cwl_v1_1.stderrLoader
Only valid as a type for a CommandLineTool output with no outputBinding set.
The following ``` outputs:
an_output_name: type: stderr
stderr: a_stderr_file
` is equivalent to `
outputs:- an_output_name:
type: File streamable: true outputBinding:
glob: a_stderr_file
If there is no stderr name provided, a random filename will be created. For example, the following ``` outputs:
- an_output_name:
type: stderr
` is equivalent to `
outputs:- an_output_name:
type: File streamable: true outputBinding:
glob: random_stderr_filenameABCDEFG
- cwl_utils.parser.cwl_v1_1.CommandLineToolLoader
- cwl_utils.parser.cwl_v1_1.SoftwarePackageLoader
- cwl_utils.parser.cwl_v1_1.DirentLoader
- cwl_utils.parser.cwl_v1_1.ExpressionToolOutputParameterLoader
- cwl_utils.parser.cwl_v1_1.WorkflowInputParameterLoader
- cwl_utils.parser.cwl_v1_1.ExpressionToolLoader
- cwl_utils.parser.cwl_v1_1.LinkMergeMethodLoader
The input link merge method, described in [WorkflowStepInput](#WorkflowStepInput).
- cwl_utils.parser.cwl_v1_1.WorkflowOutputParameterLoader
- cwl_utils.parser.cwl_v1_1.WorkflowStepInputLoader
- cwl_utils.parser.cwl_v1_1.WorkflowStepOutputLoader
- cwl_utils.parser.cwl_v1_1.ScatterMethodLoader
The scatter method, as described in [workflow step scatter](#WorkflowStep).
- cwl_utils.parser.cwl_v1_1.WorkflowStepLoader
- cwl_utils.parser.cwl_v1_1.WorkflowLoader
- cwl_utils.parser.cwl_v1_1.array_of_strtype
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_strtype_or_array_of_strtype
- cwl_utils.parser.cwl_v1_1.uri_strtype_True_False_None_None
- cwl_utils.parser.cwl_v1_1.union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_1.array_of_union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_1.union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype_or_array_of_union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_1.typedsl_union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype_or_array_of_union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_1.array_of_RecordFieldLoader
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_array_of_RecordFieldLoader
- cwl_utils.parser.cwl_v1_1.idmap_fields_union_of_None_type_or_array_of_RecordFieldLoader
- cwl_utils.parser.cwl_v1_1.Record_nameLoader
- cwl_utils.parser.cwl_v1_1.typedsl_Record_nameLoader_2
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_strtype
- cwl_utils.parser.cwl_v1_1.uri_union_of_None_type_or_strtype_True_False_None_None
- cwl_utils.parser.cwl_v1_1.uri_array_of_strtype_True_False_None_None
- cwl_utils.parser.cwl_v1_1.Enum_nameLoader
- cwl_utils.parser.cwl_v1_1.typedsl_Enum_nameLoader_2
- cwl_utils.parser.cwl_v1_1.uri_union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype_or_array_of_union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype_False_True_2_None
- cwl_utils.parser.cwl_v1_1.Array_nameLoader
- cwl_utils.parser.cwl_v1_1.typedsl_Array_nameLoader_2
- cwl_utils.parser.cwl_v1_1.Map_nameLoader
- cwl_utils.parser.cwl_v1_1.typedsl_Map_nameLoader_2
- cwl_utils.parser.cwl_v1_1.Union_nameLoader
- cwl_utils.parser.cwl_v1_1.typedsl_Union_nameLoader_2
- cwl_utils.parser.cwl_v1_1.union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_1.array_of_union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_1.union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype_or_array_of_union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_1.uri_union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype_or_array_of_union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype_False_True_2_None
- cwl_utils.parser.cwl_v1_1.typedsl_union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype_or_array_of_union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_1.array_of_CWLRecordFieldLoader
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_array_of_CWLRecordFieldLoader
- cwl_utils.parser.cwl_v1_1.idmap_fields_union_of_None_type_or_array_of_CWLRecordFieldLoader
- cwl_utils.parser.cwl_v1_1.File_classLoader
- cwl_utils.parser.cwl_v1_1.uri_File_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.uri_union_of_None_type_or_strtype_False_False_None_None
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_inttype
- cwl_utils.parser.cwl_v1_1.union_of_FileLoader_or_DirectoryLoader
- cwl_utils.parser.cwl_v1_1.array_of_union_of_FileLoader_or_DirectoryLoader
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_array_of_union_of_FileLoader_or_DirectoryLoader
- cwl_utils.parser.cwl_v1_1.secondaryfilesdsl_union_of_None_type_or_array_of_union_of_FileLoader_or_DirectoryLoader
- cwl_utils.parser.cwl_v1_1.uri_union_of_None_type_or_strtype_True_False_None_True
- cwl_utils.parser.cwl_v1_1.Directory_classLoader
- cwl_utils.parser.cwl_v1_1.uri_Directory_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_booltype
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_LoadListingEnumLoader
- cwl_utils.parser.cwl_v1_1.array_of_SecondaryFileSchemaLoader
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_SecondaryFileSchemaLoader_or_array_of_SecondaryFileSchemaLoader
- cwl_utils.parser.cwl_v1_1.secondaryfilesdsl_union_of_None_type_or_SecondaryFileSchemaLoader_or_array_of_SecondaryFileSchemaLoader
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_strtype_or_array_of_strtype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_1.uri_union_of_None_type_or_strtype_or_array_of_strtype_or_ExpressionLoader_True_False_None_True
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_strtype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_1.uri_union_of_None_type_or_strtype_or_ExpressionLoader_True_False_None_True
- cwl_utils.parser.cwl_v1_1.union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_1.array_of_union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_1.union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_1.typedsl_union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_1.array_of_InputRecordFieldLoader
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_array_of_InputRecordFieldLoader
- cwl_utils.parser.cwl_v1_1.idmap_fields_union_of_None_type_or_array_of_InputRecordFieldLoader
- cwl_utils.parser.cwl_v1_1.uri_union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype_False_True_2_None
- cwl_utils.parser.cwl_v1_1.union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_1.array_of_union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_1.union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_1.typedsl_union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_1.array_of_OutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_array_of_OutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_1.idmap_fields_union_of_None_type_or_array_of_OutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_1.uri_union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype_False_True_2_None
- cwl_utils.parser.cwl_v1_1.union_of_CommandInputParameterLoader_or_WorkflowInputParameterLoader
- cwl_utils.parser.cwl_v1_1.array_of_union_of_CommandInputParameterLoader_or_WorkflowInputParameterLoader
- cwl_utils.parser.cwl_v1_1.idmap_inputs_array_of_union_of_CommandInputParameterLoader_or_WorkflowInputParameterLoader
- cwl_utils.parser.cwl_v1_1.union_of_CommandOutputParameterLoader_or_ExpressionToolOutputParameterLoader_or_WorkflowOutputParameterLoader
- cwl_utils.parser.cwl_v1_1.array_of_union_of_CommandOutputParameterLoader_or_ExpressionToolOutputParameterLoader_or_WorkflowOutputParameterLoader
- cwl_utils.parser.cwl_v1_1.idmap_outputs_array_of_union_of_CommandOutputParameterLoader_or_ExpressionToolOutputParameterLoader_or_WorkflowOutputParameterLoader
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_array_of_union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_LoadListingRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_WorkReuseLoader_or_NetworkAccessLoader_or_InplaceUpdateRequirementLoader_or_ToolTimeLimitLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader
- cwl_utils.parser.cwl_v1_1.idmap_requirements_union_of_None_type_or_array_of_union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_LoadListingRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_WorkReuseLoader_or_NetworkAccessLoader_or_InplaceUpdateRequirementLoader_or_ToolTimeLimitLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader
- cwl_utils.parser.cwl_v1_1.union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_LoadListingRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_WorkReuseLoader_or_NetworkAccessLoader_or_InplaceUpdateRequirementLoader_or_ToolTimeLimitLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader_or_Any_type
- cwl_utils.parser.cwl_v1_1.array_of_union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_LoadListingRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_WorkReuseLoader_or_NetworkAccessLoader_or_InplaceUpdateRequirementLoader_or_ToolTimeLimitLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader_or_Any_type
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_array_of_union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_LoadListingRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_WorkReuseLoader_or_NetworkAccessLoader_or_InplaceUpdateRequirementLoader_or_ToolTimeLimitLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader_or_Any_type
- cwl_utils.parser.cwl_v1_1.idmap_hints_union_of_None_type_or_array_of_union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_LoadListingRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_WorkReuseLoader_or_NetworkAccessLoader_or_InplaceUpdateRequirementLoader_or_ToolTimeLimitLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader_or_Any_type
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_CWLVersionLoader
- cwl_utils.parser.cwl_v1_1.uri_union_of_None_type_or_CWLVersionLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.InlineJavascriptRequirement_classLoader
- cwl_utils.parser.cwl_v1_1.uri_InlineJavascriptRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_array_of_strtype
- cwl_utils.parser.cwl_v1_1.SchemaDefRequirement_classLoader
- cwl_utils.parser.cwl_v1_1.uri_SchemaDefRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.union_of_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader
- cwl_utils.parser.cwl_v1_1.array_of_union_of_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader
- cwl_utils.parser.cwl_v1_1.union_of_strtype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_booltype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_1.LoadListingRequirement_classLoader
- cwl_utils.parser.cwl_v1_1.uri_LoadListingRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_inttype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_strtype_or_ExpressionLoader_or_array_of_strtype
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_CommandLineBindingLoader
- cwl_utils.parser.cwl_v1_1.union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_1.array_of_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_1.union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_1.typedsl_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_1.array_of_CommandInputRecordFieldLoader
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_array_of_CommandInputRecordFieldLoader
- cwl_utils.parser.cwl_v1_1.idmap_fields_union_of_None_type_or_array_of_CommandInputRecordFieldLoader
- cwl_utils.parser.cwl_v1_1.uri_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_False_True_2_None
- cwl_utils.parser.cwl_v1_1.union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_1.array_of_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_1.union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_1.typedsl_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_CommandOutputBindingLoader
- cwl_utils.parser.cwl_v1_1.array_of_CommandOutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_array_of_CommandOutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_1.idmap_fields_union_of_None_type_or_array_of_CommandOutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_1.uri_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_False_True_2_None
- cwl_utils.parser.cwl_v1_1.union_of_CWLTypeLoader_or_stdinLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_1.typedsl_union_of_CWLTypeLoader_or_stdinLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_1.union_of_CWLTypeLoader_or_stdoutLoader_or_stderrLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_1.typedsl_union_of_CWLTypeLoader_or_stdoutLoader_or_stderrLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_1.CommandLineTool_classLoader
- cwl_utils.parser.cwl_v1_1.uri_CommandLineTool_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.array_of_CommandInputParameterLoader
- cwl_utils.parser.cwl_v1_1.idmap_inputs_array_of_CommandInputParameterLoader
- cwl_utils.parser.cwl_v1_1.array_of_CommandOutputParameterLoader
- cwl_utils.parser.cwl_v1_1.idmap_outputs_array_of_CommandOutputParameterLoader
- cwl_utils.parser.cwl_v1_1.union_of_strtype_or_ExpressionLoader_or_CommandLineBindingLoader
- cwl_utils.parser.cwl_v1_1.array_of_union_of_strtype_or_ExpressionLoader_or_CommandLineBindingLoader
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_array_of_union_of_strtype_or_ExpressionLoader_or_CommandLineBindingLoader
- cwl_utils.parser.cwl_v1_1.array_of_inttype
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_array_of_inttype
- cwl_utils.parser.cwl_v1_1.DockerRequirement_classLoader
- cwl_utils.parser.cwl_v1_1.uri_DockerRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.SoftwareRequirement_classLoader
- cwl_utils.parser.cwl_v1_1.uri_SoftwareRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.array_of_SoftwarePackageLoader
- cwl_utils.parser.cwl_v1_1.idmap_packages_array_of_SoftwarePackageLoader
- cwl_utils.parser.cwl_v1_1.uri_union_of_None_type_or_array_of_strtype_False_False_None_True
- cwl_utils.parser.cwl_v1_1.InitialWorkDirRequirement_classLoader
- cwl_utils.parser.cwl_v1_1.uri_InitialWorkDirRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_FileLoader_or_array_of_union_of_FileLoader_or_DirectoryLoader_or_DirectoryLoader_or_DirentLoader_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_1.array_of_union_of_None_type_or_FileLoader_or_array_of_union_of_FileLoader_or_DirectoryLoader_or_DirectoryLoader_or_DirentLoader_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_1.union_of_array_of_union_of_None_type_or_FileLoader_or_array_of_union_of_FileLoader_or_DirectoryLoader_or_DirectoryLoader_or_DirentLoader_or_ExpressionLoader_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_1.EnvVarRequirement_classLoader
- cwl_utils.parser.cwl_v1_1.uri_EnvVarRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.array_of_EnvironmentDefLoader
- cwl_utils.parser.cwl_v1_1.idmap_envDef_array_of_EnvironmentDefLoader
- cwl_utils.parser.cwl_v1_1.ShellCommandRequirement_classLoader
- cwl_utils.parser.cwl_v1_1.uri_ShellCommandRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.ResourceRequirement_classLoader
- cwl_utils.parser.cwl_v1_1.uri_ResourceRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.WorkReuse_classLoader
- cwl_utils.parser.cwl_v1_1.uri_WorkReuse_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.union_of_booltype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_1.NetworkAccess_classLoader
- cwl_utils.parser.cwl_v1_1.uri_NetworkAccess_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.InplaceUpdateRequirement_classLoader
- cwl_utils.parser.cwl_v1_1.uri_InplaceUpdateRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.ToolTimeLimit_classLoader
- cwl_utils.parser.cwl_v1_1.uri_ToolTimeLimit_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.union_of_inttype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_InputBindingLoader
- cwl_utils.parser.cwl_v1_1.ExpressionTool_classLoader
- cwl_utils.parser.cwl_v1_1.uri_ExpressionTool_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.array_of_WorkflowInputParameterLoader
- cwl_utils.parser.cwl_v1_1.idmap_inputs_array_of_WorkflowInputParameterLoader
- cwl_utils.parser.cwl_v1_1.array_of_ExpressionToolOutputParameterLoader
- cwl_utils.parser.cwl_v1_1.idmap_outputs_array_of_ExpressionToolOutputParameterLoader
- cwl_utils.parser.cwl_v1_1.uri_union_of_None_type_or_strtype_or_array_of_strtype_False_False_1_None
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_LinkMergeMethodLoader
- cwl_utils.parser.cwl_v1_1.uri_union_of_None_type_or_strtype_or_array_of_strtype_False_False_2_None
- cwl_utils.parser.cwl_v1_1.array_of_WorkflowStepInputLoader
- cwl_utils.parser.cwl_v1_1.idmap_in__array_of_WorkflowStepInputLoader
- cwl_utils.parser.cwl_v1_1.union_of_strtype_or_WorkflowStepOutputLoader
- cwl_utils.parser.cwl_v1_1.array_of_union_of_strtype_or_WorkflowStepOutputLoader
- cwl_utils.parser.cwl_v1_1.union_of_array_of_union_of_strtype_or_WorkflowStepOutputLoader
- cwl_utils.parser.cwl_v1_1.uri_union_of_array_of_union_of_strtype_or_WorkflowStepOutputLoader_True_False_None_None
- cwl_utils.parser.cwl_v1_1.array_of_Any_type
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_array_of_Any_type
- cwl_utils.parser.cwl_v1_1.idmap_hints_union_of_None_type_or_array_of_Any_type
- cwl_utils.parser.cwl_v1_1.union_of_strtype_or_CommandLineToolLoader_or_ExpressionToolLoader_or_WorkflowLoader
- cwl_utils.parser.cwl_v1_1.uri_union_of_strtype_or_CommandLineToolLoader_or_ExpressionToolLoader_or_WorkflowLoader_False_False_None_None
- cwl_utils.parser.cwl_v1_1.uri_union_of_None_type_or_strtype_or_array_of_strtype_False_False_0_None
- cwl_utils.parser.cwl_v1_1.union_of_None_type_or_ScatterMethodLoader
- cwl_utils.parser.cwl_v1_1.uri_union_of_None_type_or_ScatterMethodLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.Workflow_classLoader
- cwl_utils.parser.cwl_v1_1.uri_Workflow_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.array_of_WorkflowOutputParameterLoader
- cwl_utils.parser.cwl_v1_1.idmap_outputs_array_of_WorkflowOutputParameterLoader
- cwl_utils.parser.cwl_v1_1.array_of_WorkflowStepLoader
- cwl_utils.parser.cwl_v1_1.union_of_array_of_WorkflowStepLoader
- cwl_utils.parser.cwl_v1_1.idmap_steps_union_of_array_of_WorkflowStepLoader
- cwl_utils.parser.cwl_v1_1.SubworkflowFeatureRequirement_classLoader
- cwl_utils.parser.cwl_v1_1.uri_SubworkflowFeatureRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.ScatterFeatureRequirement_classLoader
- cwl_utils.parser.cwl_v1_1.uri_ScatterFeatureRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.MultipleInputFeatureRequirement_classLoader
- cwl_utils.parser.cwl_v1_1.uri_MultipleInputFeatureRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.StepInputExpressionRequirement_classLoader
- cwl_utils.parser.cwl_v1_1.uri_StepInputExpressionRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_1.union_of_CommandLineToolLoader_or_ExpressionToolLoader_or_WorkflowLoader
- cwl_utils.parser.cwl_v1_1.array_of_union_of_CommandLineToolLoader_or_ExpressionToolLoader_or_WorkflowLoader
- cwl_utils.parser.cwl_v1_1.union_of_CommandLineToolLoader_or_ExpressionToolLoader_or_WorkflowLoader_or_array_of_union_of_CommandLineToolLoader_or_ExpressionToolLoader_or_WorkflowLoader
- cwl_utils.parser.cwl_v1_1.load_document(doc, baseuri=None, loadingOptions=None)
- Parameters:
doc (Any) –
baseuri (Optional[str]) –
loadingOptions (Optional[LoadingOptions]) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_1.load_document_with_metadata(doc, baseuri=None, loadingOptions=None, addl_metadata_fields=None)
- Parameters:
doc (Any) –
baseuri (Optional[str]) –
loadingOptions (Optional[LoadingOptions]) –
addl_metadata_fields (Optional[MutableSequence[str]]) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_1.load_document_by_string(string, uri, loadingOptions=None)
- Parameters:
string (Any) –
uri (str) –
loadingOptions (Optional[LoadingOptions]) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_1.load_document_by_yaml(yaml, uri, loadingOptions=None)
Shortcut to load via a YAML object. yaml: must be from ruamel.yaml.main.YAML.load with preserve_quotes=True
- Parameters:
yaml (Any) –
uri (str) –
loadingOptions (Optional[LoadingOptions]) –
- Return type:
Any
cwl_utils.parser.cwl_v1_1_utils
Module Contents
Functions
|
Check for identical type specifications, ignoring extra keys like inputBinding. |
|
Given a list of sinks, check if their types match with the types of their sources. |
|
Check if the source and sink types are correct. |
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.1 input file from a serialized YAML string or a YAML object. |
|
Load a CWL v1.1 input file from a serialized YAML string. |
|
Load a CWL v1.1 input file from a YAML object. |
|
Return the merge flattened type of the source type. |
|
Determine the type for the given step input. |
|
Determine the type for the given step output. |
|
Determine the type for the given sourcenames. |
|
Find the process input parameter that matches one of the given sourcenames. |
Attributes
- cwl_utils.parser.cwl_v1_1_utils.SrcSink
- cwl_utils.parser.cwl_v1_1_utils.can_assign_src_to_sink(src, sink, strict=False)
Check for identical type specifications, ignoring extra keys like inputBinding.
src: admissible source types sink: admissible sink types
- 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.
- cwl_utils.parser.cwl_v1_1_utils.check_all_types(src_dict, sinks, type_dict)
Given a list of sinks, check if their types match with the types of their sources.
- Parameters:
src_dict (Dict[str, Any]) –
sinks (MutableSequence[Union[cwl_utils.parser.cwl_v1_1.WorkflowStepInput, cwl_utils.parser.cwl_v1_1.WorkflowOutputParameter]]) –
type_dict (Dict[str, Any]) –
- Return type:
Dict[str, List[SrcSink]]
- cwl_utils.parser.cwl_v1_1_utils.check_types(srctype, sinktype, linkMerge, valueFrom=None)
Check if the source and sink types are correct.
Acceptable types are “pass”, “warning”, or “exception”.
- cwl_utils.parser.cwl_v1_1_utils.content_limit_respected_read_bytes(f)
Read file content up to 64 kB as a byte array.
Truncate content for larger files.
- cwl_utils.parser.cwl_v1_1_utils.content_limit_respected_read(f)
Read file content up to 64 kB as an utf-8 encoded string.
Truncate content for larger files.
- cwl_utils.parser.cwl_v1_1_utils.convert_stdstreams_to_files(clt)
Convert stdin, stdout and stderr type shortcuts to files.
- Parameters:
- Return type:
None
- cwl_utils.parser.cwl_v1_1_utils.load_inputfile(doc, baseuri=None, loadingOptions=None)
Load a CWL v1.1 input file from a serialized YAML string or a YAML object.
- Parameters:
doc (Any) –
baseuri (Optional[str]) –
loadingOptions (Optional[cwl_utils.parser.cwl_v1_1.LoadingOptions]) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_1_utils.load_inputfile_by_string(string, uri, loadingOptions=None)
Load a CWL v1.1 input file from a serialized YAML string.
- Parameters:
string (Any) –
uri (str) –
loadingOptions (Optional[cwl_utils.parser.cwl_v1_1.LoadingOptions]) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_1_utils.load_inputfile_by_yaml(yaml, uri, loadingOptions=None)
Load a CWL v1.1 input file from a YAML object.
- Parameters:
yaml (Any) –
uri (str) –
loadingOptions (Optional[cwl_utils.parser.cwl_v1_1.LoadingOptions]) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_1_utils.merge_flatten_type(src)
Return the merge flattened type of the source type.
- Parameters:
src (Any) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_1_utils.type_for_step_input(step, in_)
Determine the type for the given step input.
- Parameters:
- Return type:
Any
- cwl_utils.parser.cwl_v1_1_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_1_utils.type_for_source(process, sourcenames, parent=None, linkMerge=None)
Determine the type for the given sourcenames.
- Parameters:
process (Union[cwl_utils.parser.cwl_v1_1.CommandLineTool, cwl_utils.parser.cwl_v1_1.Workflow, cwl_utils.parser.cwl_v1_1.ExpressionTool]) –
parent (Optional[cwl_utils.parser.cwl_v1_1.Workflow]) –
linkMerge (Optional[str]) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_1_utils.param_for_source_id(process, sourcenames, parent=None, scatter_context=None)
Find the process input parameter that matches one of the given sourcenames.
- Parameters:
process (Union[cwl_utils.parser.cwl_v1_1.CommandLineTool, cwl_utils.parser.cwl_v1_1.Workflow, cwl_utils.parser.cwl_v1_1.ExpressionTool]) –
parent (Optional[cwl_utils.parser.cwl_v1_1.Workflow]) –
scatter_context (Optional[List[Optional[Tuple[int, str]]]]) –
- Return type:
Union[List[cwl_utils.parser.cwl_v1_1.WorkflowInputParameter], cwl_utils.parser.cwl_v1_1.WorkflowInputParameter]
cwl_utils.parser.cwl_v1_2
Module Contents
Classes
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
A field of a record. |
|
Mark classes than have a save() and fromDoc() function. |
|
Define an enumerated type. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
A field of a record. |
|
Mark classes than have a save() and fromDoc() function. |
|
Represents a file (or group of files when secondaryFiles is provided) that |
|
Represents a directory to present to a command line tool. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
Define an input or output parameter to a process. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
Mark classes than have a save() and fromDoc() function. |
|
A field of a record. |
|
Mark classes than have a save() and fromDoc() function. |
|
Define an enumerated type. |
|
Mark classes than have a save() and fromDoc() function. |
|
A field of a record. |
|
Mark classes than have a save() and fromDoc() function. |
|
Define an enumerated type. |
|
Mark classes than have a save() and fromDoc() function. |
|
Define an input or output parameter to a process. |
|
Define an input or output parameter to a process. |
|
A process requirement declares a prerequisite that may or must be fulfilled |
|
The base executable type in CWL is the Process object defined by the |
|
Indicates that the workflow platform must support inline Javascript expressions. |
|
Mark classes than have a save() and fromDoc() function. |
|
This field consists of an array of type definitions which must be used when |
|
Secondary files are specified using the following micro-DSL for secondary files: |
|
Specify the desired behavior for loading the listing field of |
|
Define an environment variable that will be set in the runtime environment |
|
When listed under inputBinding in the input schema, the term |
|
Describes how to generate an output parameter based on the files produced |
|
Mark classes than have a save() and fromDoc() function. |
|
A field of a record. |
|
Mark classes than have a save() and fromDoc() function. |
|
Define an enumerated type. |
|
Mark classes than have a save() and fromDoc() function. |
|
A field of a record. |
|
Mark classes than have a save() and fromDoc() function. |
|
Define an enumerated type. |
|
Mark classes than have a save() and fromDoc() function. |
|
An input parameter for a CommandLineTool. |
|
An output parameter for a CommandLineTool. |
|
This defines the schema of the CWL Command Line Tool Description document. |
|
Indicates that a workflow component should be run in a |
|
A list of software packages that should be configured in the environment of |
|
Mark classes than have a save() and fromDoc() function. |
|
Define a file or subdirectory that must be staged to a particular |
|
Define a list of files and subdirectories that must be staged by the workflow platform prior to executing the command line tool. |
|
Define a list of environment variables which will be set in the |
|
Modify the behavior of CommandLineTool to generate a single string |
|
Specify basic hardware resource requirements. |
|
For implementations that support reusing output from past work (on |
|
Indicate whether a process requires outgoing IPv4/IPv6 network |
|
If inplaceUpdate is true, then an implementation supporting this |
|
Set an upper limit on the execution time of a CommandLineTool. |
|
Define an input or output parameter to a process. |
|
Define an input or output parameter to a process. |
|
An ExpressionTool is a type of Process object that can be run by itself |
|
Describe an output parameter of a workflow. The parameter must be |
|
Mark classes than have a save() and fromDoc() function. |
|
The input of a workflow step connects an upstream parameter (from the |
|
Associate an output parameter of the underlying process with a workflow |
|
A workflow step is an executable element of a workflow. It specifies the |
|
A workflow describes a set of steps and the dependencies between |
|
Indicates that the workflow platform must support nested workflows in |
|
Indicates that the workflow platform must support the scatter and |
|
Indicates that the workflow platform must support multiple inbound data links |
|
Indicate that the workflow platform must support the valueFrom field |
|
Describe an input parameter of an operation. |
|
Describe an output parameter of an operation. |
|
This record describes an abstract operation. It is a potential |
Functions
|
Load field. |
|
Take a type of value, and extracts the value as a string. |
|
Normalize type names to schema-salad types. |
|
Parse error messages from several loaders into one error message. |
|
|
|
Save and set $namespaces, $schemas, $base and any other metadata fields at the top level. |
|
|
|
Transform a file path into a URL with file scheme. |
|
Expand short forms into full URLs using the given namespace dictionary. |
|
Convert any URI to a relative one, obeying the scoping rules. |
|
Compute the shortname of a fully qualified identifier. |
|
|
|
|
|
|
|
Shortcut to load via a YAML object. |
Attributes
- cwl_utils.parser.cwl_v1_2.IdxType
- class cwl_utils.parser.cwl_v1_2.LoadingOptions(fetcher=None, namespaces=None, schemas=None, fileuri=None, copyfrom=None, original_doc=None, addl_metadata=None, baseuri=None, idx=None, imports=None, includes=None, no_link_check=None, container=None)
- Parameters:
fetcher (Optional[schema_salad.fetcher.Fetcher]) –
schemas (Optional[List[str]]) –
fileuri (Optional[str]) –
copyfrom (Optional[LoadingOptions]) –
original_doc (Optional[Any]) –
baseuri (Optional[str]) –
idx (Optional[IdxType]) –
imports (Optional[List[str]]) –
includes (Optional[List[str]]) –
no_link_check (Optional[bool]) –
container (Optional[str]) –
- property graph: rdflib.Graph
Generate a merged rdflib.Graph from all entries in self.schemas.
- Return type:
- idx: IdxType
- fetcher: schema_salad.fetcher.Fetcher
- cache: schema_salad.utils.CacheType
- class cwl_utils.parser.cwl_v1_2.Saveable
Bases:
abc.ABC
Mark classes than have a save() and fromDoc() function.
- abstract classmethod fromDoc(_doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
_doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- cwl_utils.parser.cwl_v1_2.load_field(val, fieldtype, baseuri, loadingOptions, lc=None)
Load field.
- Parameters:
fieldtype (_Loader) –
baseuri (str) –
loadingOptions (LoadingOptions) –
lc (Optional[List[Any]]) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_2.save_type
- cwl_utils.parser.cwl_v1_2.extract_type(val_type)
Take a type of value, and extracts the value as a string.
- Parameters:
val_type (Type[Any]) –
- Return type:
- cwl_utils.parser.cwl_v1_2.convert_typing(val_type)
Normalize type names to schema-salad types.
- cwl_utils.parser.cwl_v1_2.parse_errors(error_message)
Parse error messages from several loaders into one error message.
- cwl_utils.parser.cwl_v1_2.save(val, top=True, base_url='', relative_uris=True)
- cwl_utils.parser.cwl_v1_2.save_with_metadata(val, valLoadingOpts, top=True, base_url='', relative_uris=True)
Save and set $namespaces, $schemas, $base and any other metadata fields at the top level.
- Parameters:
val (Any) –
valLoadingOpts (LoadingOptions) –
top (bool) –
base_url (str) –
relative_uris (bool) –
- Return type:
save_type
- cwl_utils.parser.cwl_v1_2.expand_url(url, base_url, loadingOptions, scoped_id=False, vocab_term=False, scoped_ref=None)
- cwl_utils.parser.cwl_v1_2.file_uri(path, split_frag=False)
Transform a file path into a URL with file scheme.
- cwl_utils.parser.cwl_v1_2.prefix_url(url, namespaces)
Expand short forms into full URLs using the given namespace dictionary.
- cwl_utils.parser.cwl_v1_2.save_relative_uri(uri, base_url, scoped_id, ref_scope, relative_uris)
Convert any URI to a relative one, obeying the scoping rules.
- cwl_utils.parser.cwl_v1_2.shortname(inputid)
Compute the shortname of a fully qualified identifier.
- class cwl_utils.parser.cwl_v1_2.Documented
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_2.RecordField(name, type_, doc=None, extension_fields=None, loadingOptions=None)
Bases:
Documented
A field of a record.
- Parameters:
name (Any) –
type_ (Any) –
doc (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.RecordSchema(type_, fields=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- Parameters:
type_ (Any) –
fields (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.EnumSchema(symbols, type_, name=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Define an enumerated type.
- Parameters:
symbols (Any) –
type_ (Any) –
name (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.ArraySchema(items, type_, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- Parameters:
items (Any) –
type_ (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.MapSchema(type_, values, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- Parameters:
type_ (Any) –
values (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.UnionSchema(names, type_, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- Parameters:
names (Any) –
type_ (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.CWLArraySchema(items, type_, extension_fields=None, loadingOptions=None)
Bases:
ArraySchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
items (Any) –
type_ (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.CWLRecordField(name, type_, doc=None, extension_fields=None, loadingOptions=None)
Bases:
RecordField
A field of a record.
- Parameters:
name (Any) –
type_ (Any) –
doc (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.CWLRecordSchema(type_, fields=None, extension_fields=None, loadingOptions=None)
Bases:
RecordSchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
type_ (Any) –
fields (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.File(location=None, path=None, basename=None, dirname=None, nameroot=None, nameext=None, checksum=None, size=None, secondaryFiles=None, format=None, contents=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Represents a file (or group of files when secondaryFiles is provided) that will be accessible by tools using standard POSIX file system call API such as open(2) and read(2).
Files are represented as objects with class of File. File objects have a number of properties that provide metadata about the file.
The location property of a File is a IRI that uniquely identifies the file. Implementations must support the file:// IRI scheme and may support other schemes such as http:// and https://. The value of location may also be a relative reference, in which case it must be resolved relative to the IRI of the document it appears in. Alternately to location, implementations must also accept the path property on File, which must be a filesystem path available on the same host as the CWL runner (for inputs) or the runtime environment of a command line tool execution (for command line tool outputs).
If no location or path is specified, a file object must specify contents with the UTF-8 text content of the file. This is a “file literal”. File literals do not correspond to external resources, but are created on disk with contents with when needed for executing a tool. Where appropriate, expressions can return file literals to define new files on a runtime. The maximum size of contents is 64 kilobytes.
The basename property defines the filename on disk where the file is staged. This may differ from the resource name. If not provided, basename must be computed from the last path part of location and made available to expressions.
The secondaryFiles property is a list of File or Directory objects that must be staged in the same directory as the primary file. It is an error for file names to be duplicated in secondaryFiles.
The size property is the size in bytes of the File. It must be computed from the resource and made available to expressions. The checksum field contains a cryptographic hash of the file content for use it verifying file contents. Implementations may, at user option, enable or disable computation of the checksum field for performance or other reasons. However, the ability to compute output checksums is required to pass the CWL conformance test suite.
When executing a CommandLineTool, the files and secondary files may be staged to an arbitrary directory, but must use the value of basename for the filename. The path property must be file path in the context of the tool execution runtime (local to the compute node, or within the executing container). All computed properties should be available to expressions. File literals also must be staged and path must be set.
When collecting CommandLineTool outputs, glob matching returns file paths (with the path property) and the derived properties. This can all be modified by outputEval. Alternately, if the file cwl.output.json is present in the output, outputBinding is ignored.
File objects in the output must provide either a location IRI or a path property in the context of the tool execution runtime (local to the compute node, or within the executing container).
When evaluating an ExpressionTool, file objects must be referenced via location (the expression tool does not have access to files on disk so path is meaningless) or as file literals. It is legal to return a file object with an existing location but a different basename. The loadContents field of ExpressionTool inputs behaves the same as on CommandLineTool inputs, however it is not meaningful on the outputs.
An ExpressionTool may forward file references from input to output by using the same value for location.
- Parameters:
location (Optional[Any]) –
path (Optional[Any]) –
basename (Optional[Any]) –
dirname (Optional[Any]) –
nameroot (Optional[Any]) –
nameext (Optional[Any]) –
checksum (Optional[Any]) –
size (Optional[Any]) –
secondaryFiles (Optional[Any]) –
format (Optional[Any]) –
contents (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.Directory(location=None, path=None, basename=None, listing=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Represents a directory to present to a command line tool.
Directories are represented as objects with class of Directory. Directory objects have a number of properties that provide metadata about the directory.
The location property of a Directory is a IRI that uniquely identifies the directory. Implementations must support the file:// IRI scheme and may support other schemes such as http://. Alternately to location, implementations must also accept the path property on Directory, which must be a filesystem path available on the same host as the CWL runner (for inputs) or the runtime environment of a command line tool execution (for command line tool outputs).
A Directory object may have a listing field. This is a list of File and Directory objects that are contained in the Directory. For each entry in listing, the basename property defines the name of the File or Subdirectory when staged to disk. If listing is not provided, the implementation must have some way of fetching the Directory listing at runtime based on the location field.
If a Directory does not have location, it is a Directory literal. A Directory literal must provide listing. Directory literals must be created on disk at runtime as needed.
The resources in a Directory literal do not need to have any implied relationship in their location. For example, a Directory listing may contain two files located on different hosts. It is the responsibility of the runtime to ensure that those files are staged to disk appropriately. Secondary files associated with files in listing must also be staged to the same Directory.
When executing a CommandLineTool, Directories must be recursively staged first and have local values of path assigned.
Directory objects in CommandLineTool output must provide either a location IRI or a path property in the context of the tool execution runtime (local to the compute node, or within the executing container).
An ExpressionTool may forward file references from input to output by using the same value for location.
Name conflicts (the same basename appearing multiple times in listing or in any entry in secondaryFiles in the listing) is a fatal error.
- Parameters:
location (Optional[Any]) –
path (Optional[Any]) –
basename (Optional[Any]) –
listing (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.Labeled
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_2.Identified
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_2.LoadContents
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_2.FieldBase
Bases:
Labeled
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_2.InputFormat
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_2.OutputFormat
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_2.Parameter
Bases:
FieldBase
,Documented
,Identified
Define an input or output parameter to a process.
- class cwl_utils.parser.cwl_v1_2.InputBinding(loadContents=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- Parameters:
loadContents (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.IOSchema
Bases:
Labeled
,Documented
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_2.InputSchema
Bases:
IOSchema
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_2.OutputSchema
Bases:
IOSchema
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_2.InputRecordField(name, type_, doc=None, label=None, secondaryFiles=None, streamable=None, format=None, loadContents=None, loadListing=None, extension_fields=None, loadingOptions=None)
Bases:
CWLRecordField
,FieldBase
,InputFormat
,LoadContents
A field of a record.
- Parameters:
name (Any) –
type_ (Any) –
doc (Optional[Any]) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
format (Optional[Any]) –
loadContents (Optional[Any]) –
loadListing (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.InputRecordSchema(type_, fields=None, label=None, doc=None, name=None, extension_fields=None, loadingOptions=None)
Bases:
CWLRecordSchema
,InputSchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
type_ (Any) –
fields (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
name (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.InputEnumSchema(symbols, type_, name=None, label=None, doc=None, extension_fields=None, loadingOptions=None)
Bases:
EnumSchema
,InputSchema
Define an enumerated type.
- Parameters:
symbols (Any) –
type_ (Any) –
name (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.InputArraySchema(items, type_, label=None, doc=None, name=None, extension_fields=None, loadingOptions=None)
Bases:
CWLArraySchema
,InputSchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
items (Any) –
type_ (Any) –
label (Optional[Any]) –
doc (Optional[Any]) –
name (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.OutputRecordField(name, type_, doc=None, label=None, secondaryFiles=None, streamable=None, format=None, extension_fields=None, loadingOptions=None)
Bases:
CWLRecordField
,FieldBase
,OutputFormat
A field of a record.
- Parameters:
name (Any) –
type_ (Any) –
doc (Optional[Any]) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
format (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.OutputRecordSchema(type_, fields=None, label=None, doc=None, name=None, extension_fields=None, loadingOptions=None)
Bases:
CWLRecordSchema
,OutputSchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
type_ (Any) –
fields (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
name (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.OutputEnumSchema(symbols, type_, name=None, label=None, doc=None, extension_fields=None, loadingOptions=None)
Bases:
EnumSchema
,OutputSchema
Define an enumerated type.
- Parameters:
symbols (Any) –
type_ (Any) –
name (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.OutputArraySchema(items, type_, label=None, doc=None, name=None, extension_fields=None, loadingOptions=None)
Bases:
CWLArraySchema
,OutputSchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
items (Any) –
type_ (Any) –
label (Optional[Any]) –
doc (Optional[Any]) –
name (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.InputParameter
Bases:
Parameter
,InputFormat
,LoadContents
Define an input or output parameter to a process.
- class cwl_utils.parser.cwl_v1_2.OutputParameter
Bases:
Parameter
,OutputFormat
Define an input or output parameter to a process.
- class cwl_utils.parser.cwl_v1_2.ProcessRequirement
Bases:
Saveable
A process requirement declares a prerequisite that may or must be fulfilled before executing a process. See [Process.hints](#process) and [Process.requirements](#process).
Process requirements are the primary mechanism for specifying extensions to the CWL core specification.
- class cwl_utils.parser.cwl_v1_2.Process
Bases:
Identified
,Labeled
,Documented
The base executable type in CWL is the Process object defined by the document. Note that the Process object is abstract and cannot be directly executed.
- class cwl_utils.parser.cwl_v1_2.InlineJavascriptRequirement(expressionLib=None, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Indicates that the workflow platform must support inline Javascript expressions. If this requirement is not present, the workflow platform must not perform expression interpolation.
- Parameters:
expressionLib (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.CommandInputSchema
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_2.SchemaDefRequirement(types, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
This field consists of an array of type definitions which must be used when interpreting the inputs and outputs fields. When a type field contains a IRI, the implementation must check if the type is defined in schemaDefs and use that definition. If the type is not found in schemaDefs, it is an error. The entries in schemaDefs must be processed in the order listed such that later schema definitions may refer to earlier schema definitions.
Type definitions are allowed for `enum` and `record` types only.
Type definitions may be shared by defining them in a file and then $include-ing them in the types field.
A file can contain a list of type definitions
- Parameters:
types (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.SecondaryFileSchema(pattern, required=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Secondary files are specified using the following micro-DSL for secondary files:
If the value is a string, it is transformed to an object with two fields pattern and required
By default, the value of required is null (this indicates default behavior, which may be based on the context)
If the value ends with a question mark ? the question mark is stripped off and the value of the field required is set to False
The remaining value is assigned to the field pattern
For implementation details and examples, please see [this section](SchemaSalad.html#Domain_Specific_Language_for_secondary_files) in the Schema Salad specification.
- Parameters:
pattern (Any) –
required (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.LoadListingRequirement(loadListing=None, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Specify the desired behavior for loading the listing field of a Directory object for use by expressions.
- Parameters:
loadListing (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.EnvironmentDef(envName, envValue, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Define an environment variable that will be set in the runtime environment by the workflow platform when executing the command line tool. May be the result of executing an expression, such as getting a parameter from input.
- Parameters:
envName (Any) –
envValue (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.CommandLineBinding(loadContents=None, position=None, prefix=None, separate=None, itemSeparator=None, valueFrom=None, shellQuote=None, extension_fields=None, loadingOptions=None)
Bases:
InputBinding
When listed under inputBinding in the input schema, the term “value” refers to the corresponding value in the input object. For binding objects listed in CommandLineTool.arguments, the term “value” refers to the effective value after evaluating valueFrom.
The binding behavior when building the command line depends on the data type of the value. If there is a mismatch between the type described by the input schema and the effective value, such as resulting from an expression evaluation, an implementation must use the data type of the effective value.
string: Add prefix and the string to the command line.
number: Add prefix and decimal representation to command line.
- boolean: If true, add prefix to the command line. If false, add
nothing.
File: Add prefix and the value of [File.path](#File) to the command line.
Directory: Add prefix and the value of [Directory.path](#Directory) to the command line.
- array: If itemSeparator is specified, add prefix and the join
the array into a single string with itemSeparator separating the items. Otherwise, first add prefix, then recursively process individual elements. If the array is empty, it does not add anything to command line.
- object: Add prefix only, and recursively add object fields for
which inputBinding is specified.
null: Add nothing.
- Parameters:
loadContents (Optional[Any]) –
position (Optional[Any]) –
prefix (Optional[Any]) –
separate (Optional[Any]) –
itemSeparator (Optional[Any]) –
valueFrom (Optional[Any]) –
shellQuote (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.CommandOutputBinding(loadContents=None, loadListing=None, glob=None, outputEval=None, extension_fields=None, loadingOptions=None)
Bases:
LoadContents
Describes how to generate an output parameter based on the files produced by a CommandLineTool.
The output parameter value is generated by applying these operations in the following order:
glob
loadContents
outputEval
secondaryFiles
- Parameters:
loadContents (Optional[Any]) –
loadListing (Optional[Any]) –
glob (Optional[Any]) –
outputEval (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.CommandLineBindable(inputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- Parameters:
inputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.CommandInputRecordField(name, type_, doc=None, label=None, secondaryFiles=None, streamable=None, format=None, loadContents=None, loadListing=None, inputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
InputRecordField
,CommandLineBindable
A field of a record.
- Parameters:
name (Any) –
type_ (Any) –
doc (Optional[Any]) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
format (Optional[Any]) –
loadContents (Optional[Any]) –
loadListing (Optional[Any]) –
inputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.CommandInputRecordSchema(type_, fields=None, label=None, doc=None, name=None, inputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
InputRecordSchema
,CommandInputSchema
,CommandLineBindable
Mark classes than have a save() and fromDoc() function.
- Parameters:
type_ (Any) –
fields (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
name (Optional[Any]) –
inputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.CommandInputEnumSchema(symbols, type_, name=None, label=None, doc=None, inputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
InputEnumSchema
,CommandInputSchema
,CommandLineBindable
Define an enumerated type.
- Parameters:
symbols (Any) –
type_ (Any) –
name (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
inputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.CommandInputArraySchema(items, type_, label=None, doc=None, name=None, inputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
InputArraySchema
,CommandInputSchema
,CommandLineBindable
Mark classes than have a save() and fromDoc() function.
- Parameters:
items (Any) –
type_ (Any) –
label (Optional[Any]) –
doc (Optional[Any]) –
name (Optional[Any]) –
inputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.CommandOutputRecordField(name, type_, doc=None, label=None, secondaryFiles=None, streamable=None, format=None, outputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
OutputRecordField
A field of a record.
- Parameters:
name (Any) –
type_ (Any) –
doc (Optional[Any]) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
format (Optional[Any]) –
outputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.CommandOutputRecordSchema(type_, fields=None, label=None, doc=None, name=None, extension_fields=None, loadingOptions=None)
Bases:
OutputRecordSchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
type_ (Any) –
fields (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
name (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.CommandOutputEnumSchema(symbols, type_, name=None, label=None, doc=None, extension_fields=None, loadingOptions=None)
Bases:
OutputEnumSchema
Define an enumerated type.
- Parameters:
symbols (Any) –
type_ (Any) –
name (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.CommandOutputArraySchema(items, type_, label=None, doc=None, name=None, extension_fields=None, loadingOptions=None)
Bases:
OutputArraySchema
Mark classes than have a save() and fromDoc() function.
- Parameters:
items (Any) –
type_ (Any) –
label (Optional[Any]) –
doc (Optional[Any]) –
name (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.CommandInputParameter(type_, label=None, secondaryFiles=None, streamable=None, doc=None, id=None, format=None, loadContents=None, loadListing=None, default=None, inputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
InputParameter
An input parameter for a CommandLineTool.
- Parameters:
type_ (Any) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
doc (Optional[Any]) –
id (Optional[Any]) –
format (Optional[Any]) –
loadContents (Optional[Any]) –
loadListing (Optional[Any]) –
default (Optional[Any]) –
inputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.CommandOutputParameter(type_, label=None, secondaryFiles=None, streamable=None, doc=None, id=None, format=None, outputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
OutputParameter
An output parameter for a CommandLineTool.
- Parameters:
type_ (Any) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
doc (Optional[Any]) –
id (Optional[Any]) –
format (Optional[Any]) –
outputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.CommandLineTool(inputs, outputs, id=None, label=None, doc=None, requirements=None, hints=None, cwlVersion=None, intent=None, baseCommand=None, arguments=None, stdin=None, stderr=None, stdout=None, successCodes=None, temporaryFailCodes=None, permanentFailCodes=None, extension_fields=None, loadingOptions=None)
Bases:
Process
This defines the schema of the CWL Command Line Tool Description document.
- Parameters:
inputs (Any) –
outputs (Any) –
id (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
requirements (Optional[Any]) –
hints (Optional[Any]) –
cwlVersion (Optional[Any]) –
intent (Optional[Any]) –
baseCommand (Optional[Any]) –
arguments (Optional[Any]) –
stdin (Optional[Any]) –
stderr (Optional[Any]) –
stdout (Optional[Any]) –
successCodes (Optional[Any]) –
temporaryFailCodes (Optional[Any]) –
permanentFailCodes (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.DockerRequirement(dockerPull=None, dockerLoad=None, dockerFile=None, dockerImport=None, dockerImageId=None, dockerOutputDirectory=None, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Indicates that a workflow component should be run in a [Docker](https://docker.com) or Docker-compatible (such as [Singularity](https://www.sylabs.io/) and [udocker](https://github.com/indigo-dc/udocker)) container environment and specifies how to fetch or build the image.
If a CommandLineTool lists DockerRequirement under hints (or requirements), it may (or must) be run in the specified Docker container.
The platform must first acquire or install the correct Docker image as specified by dockerPull, dockerImport, dockerLoad or dockerFile.
The platform must execute the tool in the container using docker run with the appropriate Docker image and tool command line.
The workflow platform may provide input files and the designated output directory through the use of volume bind mounts. The platform should rewrite file paths in the input object to correspond to the Docker bind mounted locations. That is, the platform should rewrite values in the parameter context such as runtime.outdir, runtime.tmpdir and others to be valid paths within the container. The platform must ensure that runtime.outdir and runtime.tmpdir are distinct directories.
When running a tool contained in Docker, the workflow platform must not assume anything about the contents of the Docker container, such as the presence or absence of specific software, except to assume that the generated command line represents a valid command within the runtime environment of the container.
A container image may specify an [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) and/or [CMD](https://docs.docker.com/engine/reference/builder/#cmd). Command line arguments will be appended after all elements of ENTRYPOINT, and will override all elements specified using CMD (in other words, CMD is only used when the CommandLineTool definition produces an empty command line).
Use of implicit ENTRYPOINT or CMD are discouraged due to reproducibility concerns of the implicit hidden execution point (For further discussion, see [https://doi.org/10.12688/f1000research.15140.1](https://doi.org/10.12688/f1000research.15140.1)). Portable CommandLineTool wrappers in which use of a container is optional must not rely on ENTRYPOINT or CMD. CommandLineTools which do rely on ENTRYPOINT or CMD must list DockerRequirement in the requirements section.
## Interaction with other requirements
If [EnvVarRequirement](#EnvVarRequirement) is specified alongside a DockerRequirement, the environment variables must be provided to Docker using –env or –env-file and interact with the container’s preexisting environment as defined by Docker.
- Parameters:
dockerPull (Optional[Any]) –
dockerLoad (Optional[Any]) –
dockerFile (Optional[Any]) –
dockerImport (Optional[Any]) –
dockerImageId (Optional[Any]) –
dockerOutputDirectory (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.SoftwareRequirement(packages, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
A list of software packages that should be configured in the environment of the defined process.
- Parameters:
packages (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.SoftwarePackage(package, version=None, specs=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- Parameters:
package (Any) –
version (Optional[Any]) –
specs (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.Dirent(entry, entryname=None, writable=None, extension_fields=None, loadingOptions=None)
Bases:
Saveable
Define a file or subdirectory that must be staged to a particular place prior to executing the command line tool. May be the result of executing an expression, such as building a configuration file from a template.
Usually files are staged within the [designated output directory](#Runtime_environment). However, under certain circumstances, files may be staged at arbitrary locations, see discussion for entryname.
- Parameters:
entry (Any) –
entryname (Optional[Any]) –
writable (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.InitialWorkDirRequirement(listing, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Define a list of files and subdirectories that must be staged by the workflow platform prior to executing the command line tool. Normally files are staged within the designated output directory. However, when running inside containers, files may be staged at arbitrary locations, see discussion for [Dirent.entryname](#Dirent). Together with DockerRequirement.dockerOutputDirectory it is possible to control the locations of both input and output files when running in containers.
- Parameters:
listing (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.EnvVarRequirement(envDef, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Define a list of environment variables which will be set in the execution environment of the tool. See EnvironmentDef for details.
- Parameters:
envDef (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.ShellCommandRequirement(extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Modify the behavior of CommandLineTool to generate a single string containing a shell command line. Each item in the arguments list must be joined into a string separated by single spaces and quoted to prevent interpretation by the shell, unless CommandLineBinding for that argument contains shellQuote: false. If shellQuote: false is specified, the argument is joined into the command string without quoting, which allows the use of shell metacharacters such as | for pipes.
- Parameters:
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.ResourceRequirement(coresMin=None, coresMax=None, ramMin=None, ramMax=None, tmpdirMin=None, tmpdirMax=None, outdirMin=None, outdirMax=None, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Specify basic hardware resource requirements.
“min” is the minimum amount of a resource that must be reserved to schedule a job. If “min” cannot be satisfied, the job should not be run.
“max” is the maximum amount of a resource that the job shall be allocated. If a node has sufficient resources, multiple jobs may be scheduled on a single node provided each job’s “max” resource requirements are met. If a job attempts to exceed its resource allocation, an implementation may deny additional resources, which may result in job failure.
If both “min” and “max” are specified, an implementation may choose to allocate any amount between “min” and “max”, with the actual allocation provided in the runtime object.
If “min” is specified but “max” is not, then “max” == “min” If “max” is specified by “min” is not, then “min” == “max”.
It is an error if max < min.
It is an error if the value of any of these fields is negative.
If neither “min” nor “max” is specified for a resource, use the default values below.
- Parameters:
coresMin (Optional[Any]) –
coresMax (Optional[Any]) –
ramMin (Optional[Any]) –
ramMax (Optional[Any]) –
tmpdirMin (Optional[Any]) –
tmpdirMax (Optional[Any]) –
outdirMin (Optional[Any]) –
outdirMax (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.WorkReuse(enableReuse, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
For implementations that support reusing output from past work (on the assumption that same code and same input produce same results), control whether to enable or disable the reuse behavior for a particular tool or step (to accommodate situations where that assumption is incorrect). A reused step is not executed but instead returns the same output as the original execution.
If WorkReuse is not specified, correct tools should assume it is enabled by default.
- Parameters:
enableReuse (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.NetworkAccess(networkAccess, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Indicate whether a process requires outgoing IPv4/IPv6 network access. Choice of IPv4 or IPv6 is implementation and site specific, correct tools must support both.
If networkAccess is false or not specified, tools must not assume network access, except for localhost (the loopback device).
If networkAccess is true, the tool must be able to make outgoing connections to network resources. Resources may be on a private subnet or the public Internet. However, implementations and sites may apply their own security policies to restrict what is accessible by the tool.
Enabling network access does not imply a publicly routable IP address or the ability to accept inbound connections.
- Parameters:
networkAccess (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.InplaceUpdateRequirement(inplaceUpdate, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
If inplaceUpdate is true, then an implementation supporting this feature may permit tools to directly update files with writable: true in InitialWorkDirRequirement. That is, as an optimization, files may be destructively modified in place as opposed to copied and updated.
An implementation must ensure that only one workflow step may access a writable file at a time. It is an error if a file which is writable by one workflow step file is accessed (for reading or writing) by any other workflow step running independently. However, a file which has been updated in a previous completed step may be used as input to multiple steps, provided it is read-only in every step.
Workflow steps which modify a file must produce the modified file as output. Downstream steps which further process the file must use the output of previous steps, and not refer to a common input (this is necessary for both ordering and correctness).
Workflow authors should provide this in the hints section. The intent of this feature is that workflows produce the same results whether or not InplaceUpdateRequirement is supported by the implementation, and this feature is primarily available as an optimization for particular environments.
Users and implementers should be aware that workflows that destructively modify inputs may not be repeatable or reproducible. In particular, enabling this feature implies that WorkReuse should not be enabled.
- Parameters:
inplaceUpdate (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.ToolTimeLimit(timelimit, extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Set an upper limit on the execution time of a CommandLineTool. A CommandLineTool whose execution duration exceeds the time limit may be preemptively terminated and considered failed. May also be used by batch systems to make scheduling decisions. The execution duration excludes external operations, such as staging of files, pulling a docker image etc, and only counts wall-time for the execution of the command line itself.
- Parameters:
timelimit (Any) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.ExpressionToolOutputParameter(type_, label=None, secondaryFiles=None, streamable=None, doc=None, id=None, format=None, extension_fields=None, loadingOptions=None)
Bases:
OutputParameter
Define an input or output parameter to a process.
- Parameters:
type_ (Any) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
doc (Optional[Any]) –
id (Optional[Any]) –
format (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.WorkflowInputParameter(type_, label=None, secondaryFiles=None, streamable=None, doc=None, id=None, format=None, loadContents=None, loadListing=None, default=None, inputBinding=None, extension_fields=None, loadingOptions=None)
Bases:
InputParameter
Define an input or output parameter to a process.
- Parameters:
type_ (Any) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
doc (Optional[Any]) –
id (Optional[Any]) –
format (Optional[Any]) –
loadContents (Optional[Any]) –
loadListing (Optional[Any]) –
default (Optional[Any]) –
inputBinding (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.ExpressionTool(inputs, outputs, expression, id=None, label=None, doc=None, requirements=None, hints=None, cwlVersion=None, intent=None, extension_fields=None, loadingOptions=None)
Bases:
Process
An ExpressionTool is a type of Process object that can be run by itself or as a Workflow step. It executes a pure Javascript expression that has access to the same input parameters as a workflow. It is meant to be used sparingly as a way to isolate complex Javascript expressions that need to operate on input data and produce some result; perhaps just a rearrangement of the inputs. No Docker software container is required or allowed.
- Parameters:
inputs (Any) –
outputs (Any) –
expression (Any) –
id (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
requirements (Optional[Any]) –
hints (Optional[Any]) –
cwlVersion (Optional[Any]) –
intent (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.WorkflowOutputParameter(type_, label=None, secondaryFiles=None, streamable=None, doc=None, id=None, format=None, outputSource=None, linkMerge=None, pickValue=None, extension_fields=None, loadingOptions=None)
Bases:
OutputParameter
Describe an output parameter of a workflow. The parameter must be connected to one or more parameters defined in the workflow that will provide the value of the output parameter. It is legal to connect a WorkflowInputParameter to a WorkflowOutputParameter.
See [WorkflowStepInput](#WorkflowStepInput) for discussion of linkMerge and pickValue.
- Parameters:
type_ (Any) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
doc (Optional[Any]) –
id (Optional[Any]) –
format (Optional[Any]) –
outputSource (Optional[Any]) –
linkMerge (Optional[Any]) –
pickValue (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.Sink
Bases:
Saveable
Mark classes than have a save() and fromDoc() function.
- class cwl_utils.parser.cwl_v1_2.WorkflowStepInput(id=None, source=None, linkMerge=None, pickValue=None, loadContents=None, loadListing=None, label=None, default=None, valueFrom=None, extension_fields=None, loadingOptions=None)
Bases:
Identified
,Sink
,LoadContents
,Labeled
The input of a workflow step connects an upstream parameter (from the workflow inputs, or the outputs of other workflows steps) with the input parameters of the process specified by the run field. Only input parameters declared by the target process will be passed through at runtime to the process though additional parameters may be specified (for use within valueFrom expressions for instance) - unconnected or unused parameters do not represent an error condition.
# Input object
A WorkflowStepInput object must contain an id field in the form #fieldname or #prefix/fieldname. When the id field contains a slash / the field name consists of the characters following the final slash (the prefix portion may contain one or more slashes to indicate scope). This defines a field of the workflow step input object with the value of the source parameter(s).
# Merging multiple inbound data links
To merge multiple inbound data links, [MultipleInputFeatureRequirement](#MultipleInputFeatureRequirement) must be specified in the workflow or workflow step requirements.
If the sink parameter is an array, or named in a [workflow scatter](#WorkflowStep) operation, there may be multiple inbound data links listed in the source field. The values from the input links are merged depending on the method specified in the linkMerge field. If both linkMerge and pickValue are null or not specified, and there is more than one element in the source array, the default method is “merge_nested”.
If both linkMerge and pickValue are null or not specified, and there is only a single element in the source, then the input parameter takes the scalar value from the single input link (it is not wrapped in a single-list).
merge_nested
The input must be an array consisting of exactly one entry for each input link. If “merge_nested” is specified with a single link, the value from the link must be wrapped in a single-item list.
merge_flattened
The source and sink parameters must be compatible types, or the source type must be compatible with single element from the “items” type of the destination array parameter.
Source parameters which are arrays are concatenated. Source parameters which are single element types are appended as single elements.
# Picking non-null values among inbound data links
If present, pickValue specifies how to pick non-null values among inbound data links.
- pickValue is evaluated
Once all source values from upstream step or parameters are available.
After linkMerge.
Before scatter or valueFrom.
This is specifically intended to be useful in combination with [conditional execution](#WorkflowStep), where several upstream steps may be connected to a single input (source is a list), and skipped steps produce null values.
Static type checkers should check for type consistency after inferring what the type will be after pickValue is applied, just as they do currently for linkMerge.
first_non_null
For the first level of a list input, pick the first non-null element. The result is a scalar. It is an error if there is no non-null element. Examples: * [null, x, null, y] -> x * [null, [null], null, y] -> [null] * [null, null, null] -> Runtime Error
Intended use case: If-else pattern where the value comes either from a conditional step or from a default or fallback value. The conditional step(s) should be placed first in the list.
the_only_non_null
For the first level of a list input, pick the single non-null element. The result is a scalar. It is an error if there is more than one non-null element. Examples:
[null, x, null] -> x
[null, x, null, y] -> Runtime Error
[null, [null], null] -> [null]
[null, null, null] -> Runtime Error
Intended use case: Switch type patterns where developer considers more than one active code path as a workflow error (possibly indicating an error in writing when condition expressions).
all_non_null
For the first level of a list input, pick all non-null values. The result is a list, which may be empty. Examples:
[null, x, null] -> [x]
[x, null, y] -> [x, y]
[null, [x], [null]] -> [[x], [null]]
[null, null, null] -> []
- Intended use case: It is valid to have more than one source, but
sources are conditional, so null sources (from skipped steps) should be filtered out.
- Parameters:
id (Optional[Any]) –
source (Optional[Any]) –
linkMerge (Optional[Any]) –
pickValue (Optional[Any]) –
loadContents (Optional[Any]) –
loadListing (Optional[Any]) –
label (Optional[Any]) –
default (Optional[Any]) –
valueFrom (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.WorkflowStepOutput(id=None, extension_fields=None, loadingOptions=None)
Bases:
Identified
Associate an output parameter of the underlying process with a workflow parameter. The workflow parameter (given in the id field) be may be used as a source to connect with input parameters of other workflow steps, or with an output parameter of the process.
A unique identifier for this workflow output parameter. This is the identifier to use in the source field of WorkflowStepInput to connect the output value to downstream parameters.
- Parameters:
id (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.WorkflowStep(in_, out, run, id=None, label=None, doc=None, requirements=None, hints=None, when=None, scatter=None, scatterMethod=None, extension_fields=None, loadingOptions=None)
Bases:
Identified
,Labeled
,Documented
A workflow step is an executable element of a workflow. It specifies the underlying process implementation (such as CommandLineTool or another Workflow) in the run field and connects the input and output parameters of the underlying process to workflow parameters.
# Scatter/gather
To use scatter/gather, [ScatterFeatureRequirement](#ScatterFeatureRequirement) must be specified in the workflow or workflow step requirements.
A “scatter” operation specifies that the associated workflow step or subworkflow should execute separately over a list of input elements. Each job making up a scatter operation is independent and may be executed concurrently.
The scatter field specifies one or more input parameters which will be scattered. An input parameter may be listed more than once. The declared type of each input parameter implicitly becomes an array of items of the input parameter type. If a parameter is listed more than once, it becomes a nested array. As a result, upstream parameters which are connected to scattered parameters must be arrays.
All output parameter types are also implicitly wrapped in arrays. Each job in the scatter results in an entry in the output array.
If any scattered parameter runtime value is an empty array, all outputs are set to empty arrays and no work is done for the step, according to applicable scattering rules.
If scatter declares more than one input parameter, scatterMethod describes how to decompose the input into a discrete set of jobs.
- dotproduct specifies that each of the input arrays are aligned and one
element taken from each array to construct each job. It is an error if all input arrays are not the same length.
- nested_crossproduct specifies the Cartesian product of the inputs,
producing a job for every combination of the scattered inputs. The output must be nested arrays for each level of scattering, in the order that the input arrays are listed in the scatter field.
- flat_crossproduct specifies the Cartesian product of the inputs,
producing a job for every combination of the scattered inputs. The output arrays must be flattened to a single level, but otherwise listed in the order that the input arrays are listed in the scatter field.
# Conditional execution (Optional)
Conditional execution makes execution of a step conditional on an expression. A step that is not executed is “skipped”. A skipped step produces null for all output parameters.
The condition is evaluated after scatter, using the input object of each individual scatter job. This means over a set of scatter jobs, some may be executed and some may be skipped. When the results are gathered, skipped steps must be null in the output arrays.
The when field controls conditional execution. This is an expression that must be evaluated with inputs bound to the step input object (or individual scatter job), and returns a boolean value. It is an error if this expression returns a value other than true or false.
Conditionals in CWL are an optional feature and are not required to be implemented by all consumers of CWL documents. An implementation that does not support conditionals must return a fatal error when attempting to execute a workflow that uses conditional constructs the implementation does not support.
# Subworkflows
To specify a nested workflow as part of a workflow step, [SubworkflowFeatureRequirement](#SubworkflowFeatureRequirement) must be specified in the workflow or workflow step requirements.
It is a fatal error if a workflow directly or indirectly invokes itself as a subworkflow (recursive workflows are not allowed).
- Parameters:
in_ (Any) –
out (Any) –
run (Any) –
id (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
requirements (Optional[Any]) –
hints (Optional[Any]) –
when (Optional[Any]) –
scatter (Optional[Any]) –
scatterMethod (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.Workflow(inputs, outputs, steps, id=None, label=None, doc=None, requirements=None, hints=None, cwlVersion=None, intent=None, extension_fields=None, loadingOptions=None)
Bases:
Process
A workflow describes a set of steps and the dependencies between those steps. When a step produces output that will be consumed by a second step, the first step is a dependency of the second step.
When there is a dependency, the workflow engine must execute the preceding step and wait for it to successfully produce output before executing the dependent step. If two steps are defined in the workflow graph that are not directly or indirectly dependent, these steps are independent, and may execute in any order or execute concurrently. A workflow is complete when all steps have been executed.
Dependencies between parameters are expressed using the source field on [workflow step input parameters](#WorkflowStepInput) and outputSource field on [workflow output parameters](#WorkflowOutputParameter).
The source field on each workflow step input parameter expresses the data links that contribute to the value of the step input parameter (the “sink”). A workflow step can only begin execution when every data link connected to a step has been fulfilled.
The outputSource field on each workflow step input parameter expresses the data links that contribute to the value of the workflow output parameter (the “sink”). Workflow execution cannot complete successfully until every data link connected to an output parameter has been fulfilled.
## Workflow success and failure
A completed step must result in one of success, temporaryFailure or permanentFailure states. An implementation may choose to retry a step execution which resulted in temporaryFailure. An implementation may choose to either continue running other steps of a workflow, or terminate immediately upon permanentFailure.
If any step of a workflow execution results in permanentFailure, then
the workflow status is permanentFailure.
If one or more steps result in temporaryFailure and all other steps
complete success or are not executed, then the workflow status is temporaryFailure.
If all workflow steps are executed and complete with success, then the
workflow status is success.
# Extensions
[ScatterFeatureRequirement](#ScatterFeatureRequirement) and [SubworkflowFeatureRequirement](#SubworkflowFeatureRequirement) are available as standard [extensions](#Extensions_and_Metadata) to core workflow semantics.
- Parameters:
inputs (Any) –
outputs (Any) –
steps (Any) –
id (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
requirements (Optional[Any]) –
hints (Optional[Any]) –
cwlVersion (Optional[Any]) –
intent (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.SubworkflowFeatureRequirement(extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Indicates that the workflow platform must support nested workflows in the run field of [WorkflowStep](#WorkflowStep).
- Parameters:
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.ScatterFeatureRequirement(extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Indicates that the workflow platform must support the scatter and scatterMethod fields of [WorkflowStep](#WorkflowStep).
- Parameters:
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.MultipleInputFeatureRequirement(extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Indicates that the workflow platform must support multiple inbound data links listed in the source field of [WorkflowStepInput](#WorkflowStepInput).
- Parameters:
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.StepInputExpressionRequirement(extension_fields=None, loadingOptions=None)
Bases:
ProcessRequirement
Indicate that the workflow platform must support the valueFrom field of [WorkflowStepInput](#WorkflowStepInput).
- Parameters:
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.OperationInputParameter(type_, label=None, secondaryFiles=None, streamable=None, doc=None, id=None, format=None, loadContents=None, loadListing=None, default=None, extension_fields=None, loadingOptions=None)
Bases:
InputParameter
Describe an input parameter of an operation.
- Parameters:
type_ (Any) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
doc (Optional[Any]) –
id (Optional[Any]) –
format (Optional[Any]) –
loadContents (Optional[Any]) –
loadListing (Optional[Any]) –
default (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.OperationOutputParameter(type_, label=None, secondaryFiles=None, streamable=None, doc=None, id=None, format=None, extension_fields=None, loadingOptions=None)
Bases:
OutputParameter
Describe an output parameter of an operation.
- Parameters:
type_ (Any) –
label (Optional[Any]) –
secondaryFiles (Optional[Any]) –
streamable (Optional[Any]) –
doc (Optional[Any]) –
id (Optional[Any]) –
format (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- class cwl_utils.parser.cwl_v1_2.Operation(inputs, outputs, id=None, label=None, doc=None, requirements=None, hints=None, cwlVersion=None, intent=None, extension_fields=None, loadingOptions=None)
Bases:
Process
This record describes an abstract operation. It is a potential step of a workflow that has not yet been bound to a concrete implementation. It specifies an input and output signature, but does not provide enough information to be executed. An implementation (or other tooling) may provide a means of binding an Operation to a concrete process (such as Workflow, CommandLineTool, or ExpressionTool) with a compatible signature.
- Parameters:
inputs (Any) –
outputs (Any) –
id (Optional[Any]) –
label (Optional[Any]) –
doc (Optional[Any]) –
requirements (Optional[Any]) –
hints (Optional[Any]) –
cwlVersion (Optional[Any]) –
intent (Optional[Any]) –
extension_fields (Optional[Dict[str, Any]]) –
loadingOptions (Optional[LoadingOptions]) –
- attrs
- classmethod fromDoc(doc, baseuri, loadingOptions, docRoot=None)
Construct this object from the result of yaml.load().
- Parameters:
doc (Any) –
baseuri (str) –
loadingOptions (LoadingOptions) –
docRoot (Optional[str]) –
- Return type:
- cwl_utils.parser.cwl_v1_2.strtype
- cwl_utils.parser.cwl_v1_2.inttype
- cwl_utils.parser.cwl_v1_2.floattype
- cwl_utils.parser.cwl_v1_2.booltype
- cwl_utils.parser.cwl_v1_2.None_type
- cwl_utils.parser.cwl_v1_2.Any_type
- cwl_utils.parser.cwl_v1_2.PrimitiveTypeLoader
Names of salad data types (based on Avro schema declarations).
Refer to the [Avro schema declaration documentation](https://avro.apache.org/docs/current/spec.html#schemas) for detailed information.
null: no value boolean: a binary value int: 32-bit signed integer long: 64-bit signed integer float: single precision (32-bit) IEEE 754 floating-point number double: double precision (64-bit) IEEE 754 floating-point number string: Unicode character sequence
- cwl_utils.parser.cwl_v1_2.AnyLoader
The Any type validates for any non-null value.
- cwl_utils.parser.cwl_v1_2.RecordFieldLoader
- cwl_utils.parser.cwl_v1_2.RecordSchemaLoader
- cwl_utils.parser.cwl_v1_2.EnumSchemaLoader
- cwl_utils.parser.cwl_v1_2.ArraySchemaLoader
- cwl_utils.parser.cwl_v1_2.MapSchemaLoader
- cwl_utils.parser.cwl_v1_2.UnionSchemaLoader
- cwl_utils.parser.cwl_v1_2.CWLTypeLoader
Extends primitive types with the concept of a file and directory as a builtin type. File: A File object Directory: A Directory object
- cwl_utils.parser.cwl_v1_2.CWLArraySchemaLoader
- cwl_utils.parser.cwl_v1_2.CWLRecordFieldLoader
- cwl_utils.parser.cwl_v1_2.CWLRecordSchemaLoader
- cwl_utils.parser.cwl_v1_2.FileLoader
- cwl_utils.parser.cwl_v1_2.DirectoryLoader
- cwl_utils.parser.cwl_v1_2.CWLObjectTypeLoader
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_CWLObjectTypeLoader
- cwl_utils.parser.cwl_v1_2.array_of_union_of_None_type_or_CWLObjectTypeLoader
- cwl_utils.parser.cwl_v1_2.map_of_union_of_None_type_or_CWLObjectTypeLoader
- cwl_utils.parser.cwl_v1_2.InlineJavascriptRequirementLoader
- cwl_utils.parser.cwl_v1_2.SchemaDefRequirementLoader
- cwl_utils.parser.cwl_v1_2.LoadListingRequirementLoader
- cwl_utils.parser.cwl_v1_2.DockerRequirementLoader
- cwl_utils.parser.cwl_v1_2.SoftwareRequirementLoader
- cwl_utils.parser.cwl_v1_2.InitialWorkDirRequirementLoader
- cwl_utils.parser.cwl_v1_2.EnvVarRequirementLoader
- cwl_utils.parser.cwl_v1_2.ShellCommandRequirementLoader
- cwl_utils.parser.cwl_v1_2.ResourceRequirementLoader
- cwl_utils.parser.cwl_v1_2.WorkReuseLoader
- cwl_utils.parser.cwl_v1_2.NetworkAccessLoader
- cwl_utils.parser.cwl_v1_2.InplaceUpdateRequirementLoader
- cwl_utils.parser.cwl_v1_2.ToolTimeLimitLoader
- cwl_utils.parser.cwl_v1_2.SubworkflowFeatureRequirementLoader
- cwl_utils.parser.cwl_v1_2.ScatterFeatureRequirementLoader
- cwl_utils.parser.cwl_v1_2.MultipleInputFeatureRequirementLoader
- cwl_utils.parser.cwl_v1_2.StepInputExpressionRequirementLoader
- cwl_utils.parser.cwl_v1_2.union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_LoadListingRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_WorkReuseLoader_or_NetworkAccessLoader_or_InplaceUpdateRequirementLoader_or_ToolTimeLimitLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader
- cwl_utils.parser.cwl_v1_2.array_of_union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_LoadListingRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_WorkReuseLoader_or_NetworkAccessLoader_or_InplaceUpdateRequirementLoader_or_ToolTimeLimitLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_array_of_union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_LoadListingRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_WorkReuseLoader_or_NetworkAccessLoader_or_InplaceUpdateRequirementLoader_or_ToolTimeLimitLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader_or_CWLObjectTypeLoader
- cwl_utils.parser.cwl_v1_2.map_of_union_of_None_type_or_array_of_union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_LoadListingRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_WorkReuseLoader_or_NetworkAccessLoader_or_InplaceUpdateRequirementLoader_or_ToolTimeLimitLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader_or_CWLObjectTypeLoader
- cwl_utils.parser.cwl_v1_2.CWLInputFileLoader
- cwl_utils.parser.cwl_v1_2.CWLVersionLoader
Version symbols for published CWL document versions.
- cwl_utils.parser.cwl_v1_2.LoadListingEnumLoader
Specify the desired behavior for loading the listing field of a Directory object for use by expressions.
no_listing: Do not load the directory listing. shallow_listing: Only load the top level listing, do not recurse into subdirectories. deep_listing: Load the directory listing and recursively load all subdirectories as well.
- cwl_utils.parser.cwl_v1_2.ExpressionLoader
- cwl_utils.parser.cwl_v1_2.InputBindingLoader
- cwl_utils.parser.cwl_v1_2.InputRecordFieldLoader
- cwl_utils.parser.cwl_v1_2.InputRecordSchemaLoader
- cwl_utils.parser.cwl_v1_2.InputEnumSchemaLoader
- cwl_utils.parser.cwl_v1_2.InputArraySchemaLoader
- cwl_utils.parser.cwl_v1_2.OutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_2.OutputRecordSchemaLoader
- cwl_utils.parser.cwl_v1_2.OutputEnumSchemaLoader
- cwl_utils.parser.cwl_v1_2.OutputArraySchemaLoader
- cwl_utils.parser.cwl_v1_2.SecondaryFileSchemaLoader
- cwl_utils.parser.cwl_v1_2.EnvironmentDefLoader
- cwl_utils.parser.cwl_v1_2.CommandLineBindingLoader
- cwl_utils.parser.cwl_v1_2.CommandOutputBindingLoader
- cwl_utils.parser.cwl_v1_2.CommandLineBindableLoader
- cwl_utils.parser.cwl_v1_2.CommandInputRecordFieldLoader
- cwl_utils.parser.cwl_v1_2.CommandInputRecordSchemaLoader
- cwl_utils.parser.cwl_v1_2.CommandInputEnumSchemaLoader
- cwl_utils.parser.cwl_v1_2.CommandInputArraySchemaLoader
- cwl_utils.parser.cwl_v1_2.CommandOutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_2.CommandOutputRecordSchemaLoader
- cwl_utils.parser.cwl_v1_2.CommandOutputEnumSchemaLoader
- cwl_utils.parser.cwl_v1_2.CommandOutputArraySchemaLoader
- cwl_utils.parser.cwl_v1_2.CommandInputParameterLoader
- cwl_utils.parser.cwl_v1_2.CommandOutputParameterLoader
- cwl_utils.parser.cwl_v1_2.stdinLoader
Only valid as a type for a CommandLineTool input with no inputBinding set. stdin must not be specified at the CommandLineTool level.
The following ``` inputs:
an_input_name: type: stdin
` is equivalent to `
inputs:- an_input_name:
type: File streamable: true
- cwl_utils.parser.cwl_v1_2.stdoutLoader
Only valid as a type for a CommandLineTool output with no outputBinding set.
The following ``` outputs:
- an_output_name:
type: stdout
stdout: a_stdout_file
` is equivalent to `
outputs:- an_output_name:
type: File streamable: true outputBinding:
glob: a_stdout_file
If there is no stdout name provided, a random filename will be created. For example, the following ``` outputs:
- an_output_name:
type: stdout
` is equivalent to `
outputs:- an_output_name:
type: File streamable: true outputBinding:
glob: random_stdout_filenameABCDEFG
stdout: random_stdout_filenameABCDEFG ```
If the CommandLineTool contains logically chained commands (e.g. echo a && echo b) stdout must include the output of every command.
- cwl_utils.parser.cwl_v1_2.stderrLoader
Only valid as a type for a CommandLineTool output with no outputBinding set.
The following ``` outputs:
an_output_name: type: stderr
stderr: a_stderr_file
` is equivalent to `
outputs:- an_output_name:
type: File streamable: true outputBinding:
glob: a_stderr_file
If there is no stderr name provided, a random filename will be created. For example, the following ``` outputs:
- an_output_name:
type: stderr
` is equivalent to `
outputs:- an_output_name:
type: File streamable: true outputBinding:
glob: random_stderr_filenameABCDEFG
- cwl_utils.parser.cwl_v1_2.CommandLineToolLoader
- cwl_utils.parser.cwl_v1_2.SoftwarePackageLoader
- cwl_utils.parser.cwl_v1_2.DirentLoader
- cwl_utils.parser.cwl_v1_2.ExpressionToolOutputParameterLoader
- cwl_utils.parser.cwl_v1_2.WorkflowInputParameterLoader
- cwl_utils.parser.cwl_v1_2.ExpressionToolLoader
- cwl_utils.parser.cwl_v1_2.LinkMergeMethodLoader
The input link merge method, described in [WorkflowStepInput](#WorkflowStepInput).
- cwl_utils.parser.cwl_v1_2.PickValueMethodLoader
Picking non-null values among inbound data links, described in [WorkflowStepInput](#WorkflowStepInput).
- cwl_utils.parser.cwl_v1_2.WorkflowOutputParameterLoader
- cwl_utils.parser.cwl_v1_2.WorkflowStepInputLoader
- cwl_utils.parser.cwl_v1_2.WorkflowStepOutputLoader
- cwl_utils.parser.cwl_v1_2.ScatterMethodLoader
The scatter method, as described in [workflow step scatter](#WorkflowStep).
- cwl_utils.parser.cwl_v1_2.WorkflowStepLoader
- cwl_utils.parser.cwl_v1_2.WorkflowLoader
- cwl_utils.parser.cwl_v1_2.OperationInputParameterLoader
- cwl_utils.parser.cwl_v1_2.OperationOutputParameterLoader
- cwl_utils.parser.cwl_v1_2.OperationLoader
- cwl_utils.parser.cwl_v1_2.array_of_strtype
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_strtype_or_array_of_strtype
- cwl_utils.parser.cwl_v1_2.uri_strtype_True_False_None_None
- cwl_utils.parser.cwl_v1_2.union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_2.array_of_union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_2.union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype_or_array_of_union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_2.typedsl_union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype_or_array_of_union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_2.array_of_RecordFieldLoader
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_array_of_RecordFieldLoader
- cwl_utils.parser.cwl_v1_2.idmap_fields_union_of_None_type_or_array_of_RecordFieldLoader
- cwl_utils.parser.cwl_v1_2.Record_nameLoader
- cwl_utils.parser.cwl_v1_2.typedsl_Record_nameLoader_2
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_strtype
- cwl_utils.parser.cwl_v1_2.uri_union_of_None_type_or_strtype_True_False_None_None
- cwl_utils.parser.cwl_v1_2.uri_array_of_strtype_True_False_None_None
- cwl_utils.parser.cwl_v1_2.Enum_nameLoader
- cwl_utils.parser.cwl_v1_2.typedsl_Enum_nameLoader_2
- cwl_utils.parser.cwl_v1_2.uri_union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype_or_array_of_union_of_PrimitiveTypeLoader_or_RecordSchemaLoader_or_EnumSchemaLoader_or_ArraySchemaLoader_or_MapSchemaLoader_or_UnionSchemaLoader_or_strtype_False_True_2_None
- cwl_utils.parser.cwl_v1_2.Array_nameLoader
- cwl_utils.parser.cwl_v1_2.typedsl_Array_nameLoader_2
- cwl_utils.parser.cwl_v1_2.Map_nameLoader
- cwl_utils.parser.cwl_v1_2.typedsl_Map_nameLoader_2
- cwl_utils.parser.cwl_v1_2.Union_nameLoader
- cwl_utils.parser.cwl_v1_2.typedsl_Union_nameLoader_2
- cwl_utils.parser.cwl_v1_2.union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_2.array_of_union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_2.union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype_or_array_of_union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_2.uri_union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype_or_array_of_union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype_False_True_2_None
- cwl_utils.parser.cwl_v1_2.typedsl_union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype_or_array_of_union_of_PrimitiveTypeLoader_or_CWLRecordSchemaLoader_or_EnumSchemaLoader_or_CWLArraySchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_2.array_of_CWLRecordFieldLoader
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_array_of_CWLRecordFieldLoader
- cwl_utils.parser.cwl_v1_2.idmap_fields_union_of_None_type_or_array_of_CWLRecordFieldLoader
- cwl_utils.parser.cwl_v1_2.File_classLoader
- cwl_utils.parser.cwl_v1_2.uri_File_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.uri_union_of_None_type_or_strtype_False_False_None_None
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_inttype
- cwl_utils.parser.cwl_v1_2.union_of_FileLoader_or_DirectoryLoader
- cwl_utils.parser.cwl_v1_2.array_of_union_of_FileLoader_or_DirectoryLoader
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_array_of_union_of_FileLoader_or_DirectoryLoader
- cwl_utils.parser.cwl_v1_2.secondaryfilesdsl_union_of_None_type_or_array_of_union_of_FileLoader_or_DirectoryLoader
- cwl_utils.parser.cwl_v1_2.uri_union_of_None_type_or_strtype_True_False_None_True
- cwl_utils.parser.cwl_v1_2.Directory_classLoader
- cwl_utils.parser.cwl_v1_2.uri_Directory_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_booltype
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_LoadListingEnumLoader
- cwl_utils.parser.cwl_v1_2.array_of_SecondaryFileSchemaLoader
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_SecondaryFileSchemaLoader_or_array_of_SecondaryFileSchemaLoader
- cwl_utils.parser.cwl_v1_2.secondaryfilesdsl_union_of_None_type_or_SecondaryFileSchemaLoader_or_array_of_SecondaryFileSchemaLoader
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_strtype_or_array_of_strtype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_2.uri_union_of_None_type_or_strtype_or_array_of_strtype_or_ExpressionLoader_True_False_None_True
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_strtype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_2.uri_union_of_None_type_or_strtype_or_ExpressionLoader_True_False_None_True
- cwl_utils.parser.cwl_v1_2.union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_2.array_of_union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_2.union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_2.typedsl_union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_2.array_of_InputRecordFieldLoader
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_array_of_InputRecordFieldLoader
- cwl_utils.parser.cwl_v1_2.idmap_fields_union_of_None_type_or_array_of_InputRecordFieldLoader
- cwl_utils.parser.cwl_v1_2.uri_union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_InputRecordSchemaLoader_or_InputEnumSchemaLoader_or_InputArraySchemaLoader_or_strtype_False_True_2_None
- cwl_utils.parser.cwl_v1_2.union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_2.array_of_union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_2.union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_2.typedsl_union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_2.array_of_OutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_array_of_OutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_2.idmap_fields_union_of_None_type_or_array_of_OutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_2.uri_union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_OutputRecordSchemaLoader_or_OutputEnumSchemaLoader_or_OutputArraySchemaLoader_or_strtype_False_True_2_None
- cwl_utils.parser.cwl_v1_2.union_of_CommandInputParameterLoader_or_WorkflowInputParameterLoader_or_OperationInputParameterLoader
- cwl_utils.parser.cwl_v1_2.array_of_union_of_CommandInputParameterLoader_or_WorkflowInputParameterLoader_or_OperationInputParameterLoader
- cwl_utils.parser.cwl_v1_2.idmap_inputs_array_of_union_of_CommandInputParameterLoader_or_WorkflowInputParameterLoader_or_OperationInputParameterLoader
- cwl_utils.parser.cwl_v1_2.union_of_CommandOutputParameterLoader_or_ExpressionToolOutputParameterLoader_or_WorkflowOutputParameterLoader_or_OperationOutputParameterLoader
- cwl_utils.parser.cwl_v1_2.array_of_union_of_CommandOutputParameterLoader_or_ExpressionToolOutputParameterLoader_or_WorkflowOutputParameterLoader_or_OperationOutputParameterLoader
- cwl_utils.parser.cwl_v1_2.idmap_outputs_array_of_union_of_CommandOutputParameterLoader_or_ExpressionToolOutputParameterLoader_or_WorkflowOutputParameterLoader_or_OperationOutputParameterLoader
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_array_of_union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_LoadListingRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_WorkReuseLoader_or_NetworkAccessLoader_or_InplaceUpdateRequirementLoader_or_ToolTimeLimitLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader
- cwl_utils.parser.cwl_v1_2.idmap_requirements_union_of_None_type_or_array_of_union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_LoadListingRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_WorkReuseLoader_or_NetworkAccessLoader_or_InplaceUpdateRequirementLoader_or_ToolTimeLimitLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader
- cwl_utils.parser.cwl_v1_2.union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_LoadListingRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_WorkReuseLoader_or_NetworkAccessLoader_or_InplaceUpdateRequirementLoader_or_ToolTimeLimitLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader_or_Any_type
- cwl_utils.parser.cwl_v1_2.array_of_union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_LoadListingRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_WorkReuseLoader_or_NetworkAccessLoader_or_InplaceUpdateRequirementLoader_or_ToolTimeLimitLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader_or_Any_type
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_array_of_union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_LoadListingRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_WorkReuseLoader_or_NetworkAccessLoader_or_InplaceUpdateRequirementLoader_or_ToolTimeLimitLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader_or_Any_type
- cwl_utils.parser.cwl_v1_2.idmap_hints_union_of_None_type_or_array_of_union_of_InlineJavascriptRequirementLoader_or_SchemaDefRequirementLoader_or_LoadListingRequirementLoader_or_DockerRequirementLoader_or_SoftwareRequirementLoader_or_InitialWorkDirRequirementLoader_or_EnvVarRequirementLoader_or_ShellCommandRequirementLoader_or_ResourceRequirementLoader_or_WorkReuseLoader_or_NetworkAccessLoader_or_InplaceUpdateRequirementLoader_or_ToolTimeLimitLoader_or_SubworkflowFeatureRequirementLoader_or_ScatterFeatureRequirementLoader_or_MultipleInputFeatureRequirementLoader_or_StepInputExpressionRequirementLoader_or_Any_type
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_CWLVersionLoader
- cwl_utils.parser.cwl_v1_2.uri_union_of_None_type_or_CWLVersionLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_array_of_strtype
- cwl_utils.parser.cwl_v1_2.uri_union_of_None_type_or_array_of_strtype_True_False_None_None
- cwl_utils.parser.cwl_v1_2.InlineJavascriptRequirement_classLoader
- cwl_utils.parser.cwl_v1_2.uri_InlineJavascriptRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.SchemaDefRequirement_classLoader
- cwl_utils.parser.cwl_v1_2.uri_SchemaDefRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.union_of_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader
- cwl_utils.parser.cwl_v1_2.array_of_union_of_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader
- cwl_utils.parser.cwl_v1_2.union_of_strtype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_booltype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_2.LoadListingRequirement_classLoader
- cwl_utils.parser.cwl_v1_2.uri_LoadListingRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_inttype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_strtype_or_ExpressionLoader_or_array_of_strtype
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_CommandLineBindingLoader
- cwl_utils.parser.cwl_v1_2.union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_2.array_of_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_2.union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_2.typedsl_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_2.array_of_CommandInputRecordFieldLoader
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_array_of_CommandInputRecordFieldLoader
- cwl_utils.parser.cwl_v1_2.idmap_fields_union_of_None_type_or_array_of_CommandInputRecordFieldLoader
- cwl_utils.parser.cwl_v1_2.uri_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_False_True_2_None
- cwl_utils.parser.cwl_v1_2.union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_2.array_of_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_2.union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_2.typedsl_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_CommandOutputBindingLoader
- cwl_utils.parser.cwl_v1_2.array_of_CommandOutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_array_of_CommandOutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_2.idmap_fields_union_of_None_type_or_array_of_CommandOutputRecordFieldLoader
- cwl_utils.parser.cwl_v1_2.uri_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_False_True_2_None
- cwl_utils.parser.cwl_v1_2.union_of_CWLTypeLoader_or_stdinLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_2.typedsl_union_of_CWLTypeLoader_or_stdinLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandInputRecordSchemaLoader_or_CommandInputEnumSchemaLoader_or_CommandInputArraySchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_2.union_of_CWLTypeLoader_or_stdoutLoader_or_stderrLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype
- cwl_utils.parser.cwl_v1_2.typedsl_union_of_CWLTypeLoader_or_stdoutLoader_or_stderrLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_or_array_of_union_of_CWLTypeLoader_or_CommandOutputRecordSchemaLoader_or_CommandOutputEnumSchemaLoader_or_CommandOutputArraySchemaLoader_or_strtype_2
- cwl_utils.parser.cwl_v1_2.CommandLineTool_classLoader
- cwl_utils.parser.cwl_v1_2.uri_CommandLineTool_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.array_of_CommandInputParameterLoader
- cwl_utils.parser.cwl_v1_2.idmap_inputs_array_of_CommandInputParameterLoader
- cwl_utils.parser.cwl_v1_2.array_of_CommandOutputParameterLoader
- cwl_utils.parser.cwl_v1_2.idmap_outputs_array_of_CommandOutputParameterLoader
- cwl_utils.parser.cwl_v1_2.union_of_strtype_or_ExpressionLoader_or_CommandLineBindingLoader
- cwl_utils.parser.cwl_v1_2.array_of_union_of_strtype_or_ExpressionLoader_or_CommandLineBindingLoader
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_array_of_union_of_strtype_or_ExpressionLoader_or_CommandLineBindingLoader
- cwl_utils.parser.cwl_v1_2.array_of_inttype
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_array_of_inttype
- cwl_utils.parser.cwl_v1_2.DockerRequirement_classLoader
- cwl_utils.parser.cwl_v1_2.uri_DockerRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.SoftwareRequirement_classLoader
- cwl_utils.parser.cwl_v1_2.uri_SoftwareRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.array_of_SoftwarePackageLoader
- cwl_utils.parser.cwl_v1_2.idmap_packages_array_of_SoftwarePackageLoader
- cwl_utils.parser.cwl_v1_2.uri_union_of_None_type_or_array_of_strtype_False_False_None_True
- cwl_utils.parser.cwl_v1_2.InitialWorkDirRequirement_classLoader
- cwl_utils.parser.cwl_v1_2.uri_InitialWorkDirRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_DirentLoader_or_ExpressionLoader_or_FileLoader_or_DirectoryLoader_or_array_of_union_of_FileLoader_or_DirectoryLoader
- cwl_utils.parser.cwl_v1_2.array_of_union_of_None_type_or_DirentLoader_or_ExpressionLoader_or_FileLoader_or_DirectoryLoader_or_array_of_union_of_FileLoader_or_DirectoryLoader
- cwl_utils.parser.cwl_v1_2.union_of_ExpressionLoader_or_array_of_union_of_None_type_or_DirentLoader_or_ExpressionLoader_or_FileLoader_or_DirectoryLoader_or_array_of_union_of_FileLoader_or_DirectoryLoader
- cwl_utils.parser.cwl_v1_2.EnvVarRequirement_classLoader
- cwl_utils.parser.cwl_v1_2.uri_EnvVarRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.array_of_EnvironmentDefLoader
- cwl_utils.parser.cwl_v1_2.idmap_envDef_array_of_EnvironmentDefLoader
- cwl_utils.parser.cwl_v1_2.ShellCommandRequirement_classLoader
- cwl_utils.parser.cwl_v1_2.uri_ShellCommandRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.ResourceRequirement_classLoader
- cwl_utils.parser.cwl_v1_2.uri_ResourceRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_inttype_or_floattype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_2.WorkReuse_classLoader
- cwl_utils.parser.cwl_v1_2.uri_WorkReuse_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.union_of_booltype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_2.NetworkAccess_classLoader
- cwl_utils.parser.cwl_v1_2.uri_NetworkAccess_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.InplaceUpdateRequirement_classLoader
- cwl_utils.parser.cwl_v1_2.uri_InplaceUpdateRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.ToolTimeLimit_classLoader
- cwl_utils.parser.cwl_v1_2.uri_ToolTimeLimit_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.union_of_inttype_or_ExpressionLoader
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_InputBindingLoader
- cwl_utils.parser.cwl_v1_2.ExpressionTool_classLoader
- cwl_utils.parser.cwl_v1_2.uri_ExpressionTool_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.array_of_WorkflowInputParameterLoader
- cwl_utils.parser.cwl_v1_2.idmap_inputs_array_of_WorkflowInputParameterLoader
- cwl_utils.parser.cwl_v1_2.array_of_ExpressionToolOutputParameterLoader
- cwl_utils.parser.cwl_v1_2.idmap_outputs_array_of_ExpressionToolOutputParameterLoader
- cwl_utils.parser.cwl_v1_2.uri_union_of_None_type_or_strtype_or_array_of_strtype_False_False_1_None
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_LinkMergeMethodLoader
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_PickValueMethodLoader
- cwl_utils.parser.cwl_v1_2.uri_union_of_None_type_or_strtype_or_array_of_strtype_False_False_2_None
- cwl_utils.parser.cwl_v1_2.array_of_WorkflowStepInputLoader
- cwl_utils.parser.cwl_v1_2.idmap_in__array_of_WorkflowStepInputLoader
- cwl_utils.parser.cwl_v1_2.union_of_strtype_or_WorkflowStepOutputLoader
- cwl_utils.parser.cwl_v1_2.array_of_union_of_strtype_or_WorkflowStepOutputLoader
- cwl_utils.parser.cwl_v1_2.union_of_array_of_union_of_strtype_or_WorkflowStepOutputLoader
- cwl_utils.parser.cwl_v1_2.uri_union_of_array_of_union_of_strtype_or_WorkflowStepOutputLoader_True_False_None_None
- cwl_utils.parser.cwl_v1_2.array_of_Any_type
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_array_of_Any_type
- cwl_utils.parser.cwl_v1_2.idmap_hints_union_of_None_type_or_array_of_Any_type
- cwl_utils.parser.cwl_v1_2.union_of_strtype_or_CommandLineToolLoader_or_ExpressionToolLoader_or_WorkflowLoader_or_OperationLoader
- cwl_utils.parser.cwl_v1_2.uri_union_of_strtype_or_CommandLineToolLoader_or_ExpressionToolLoader_or_WorkflowLoader_or_OperationLoader_False_False_None_None
- cwl_utils.parser.cwl_v1_2.uri_union_of_None_type_or_strtype_or_array_of_strtype_False_False_0_None
- cwl_utils.parser.cwl_v1_2.union_of_None_type_or_ScatterMethodLoader
- cwl_utils.parser.cwl_v1_2.uri_union_of_None_type_or_ScatterMethodLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.Workflow_classLoader
- cwl_utils.parser.cwl_v1_2.uri_Workflow_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.array_of_WorkflowOutputParameterLoader
- cwl_utils.parser.cwl_v1_2.idmap_outputs_array_of_WorkflowOutputParameterLoader
- cwl_utils.parser.cwl_v1_2.array_of_WorkflowStepLoader
- cwl_utils.parser.cwl_v1_2.union_of_array_of_WorkflowStepLoader
- cwl_utils.parser.cwl_v1_2.idmap_steps_union_of_array_of_WorkflowStepLoader
- cwl_utils.parser.cwl_v1_2.SubworkflowFeatureRequirement_classLoader
- cwl_utils.parser.cwl_v1_2.uri_SubworkflowFeatureRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.ScatterFeatureRequirement_classLoader
- cwl_utils.parser.cwl_v1_2.uri_ScatterFeatureRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.MultipleInputFeatureRequirement_classLoader
- cwl_utils.parser.cwl_v1_2.uri_MultipleInputFeatureRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.StepInputExpressionRequirement_classLoader
- cwl_utils.parser.cwl_v1_2.uri_StepInputExpressionRequirement_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.Operation_classLoader
- cwl_utils.parser.cwl_v1_2.uri_Operation_classLoader_False_True_None_None
- cwl_utils.parser.cwl_v1_2.array_of_OperationInputParameterLoader
- cwl_utils.parser.cwl_v1_2.idmap_inputs_array_of_OperationInputParameterLoader
- cwl_utils.parser.cwl_v1_2.array_of_OperationOutputParameterLoader
- cwl_utils.parser.cwl_v1_2.idmap_outputs_array_of_OperationOutputParameterLoader
- cwl_utils.parser.cwl_v1_2.union_of_CommandLineToolLoader_or_ExpressionToolLoader_or_WorkflowLoader_or_OperationLoader
- cwl_utils.parser.cwl_v1_2.array_of_union_of_CommandLineToolLoader_or_ExpressionToolLoader_or_WorkflowLoader_or_OperationLoader
- cwl_utils.parser.cwl_v1_2.union_of_CommandLineToolLoader_or_ExpressionToolLoader_or_WorkflowLoader_or_OperationLoader_or_array_of_union_of_CommandLineToolLoader_or_ExpressionToolLoader_or_WorkflowLoader_or_OperationLoader
- cwl_utils.parser.cwl_v1_2.load_document(doc, baseuri=None, loadingOptions=None)
- Parameters:
doc (Any) –
baseuri (Optional[str]) –
loadingOptions (Optional[LoadingOptions]) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_2.load_document_with_metadata(doc, baseuri=None, loadingOptions=None, addl_metadata_fields=None)
- Parameters:
doc (Any) –
baseuri (Optional[str]) –
loadingOptions (Optional[LoadingOptions]) –
addl_metadata_fields (Optional[MutableSequence[str]]) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_2.load_document_by_string(string, uri, loadingOptions=None)
- Parameters:
string (Any) –
uri (str) –
loadingOptions (Optional[LoadingOptions]) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_2.load_document_by_yaml(yaml, uri, loadingOptions=None)
Shortcut to load via a YAML object. yaml: must be from ruamel.yaml.main.YAML.load with preserve_quotes=True
- Parameters:
yaml (Any) –
uri (str) –
loadingOptions (Optional[LoadingOptions]) –
- Return type:
Any
cwl_utils.parser.cwl_v1_2_utils
Module Contents
Functions
|
Check for identical type specifications, ignoring extra keys like inputBinding. |
|
Given a list of sinks, check if their types match with the types of their sources. |
|
Check if the source and sink types are correct. |
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. |
|
Return the merge flattened type of the source type. |
|
Determine the type for the given step input. |
|
Determine the type for the given step output. |
|
Determine the type for the given sourcenames. |
|
Find the process input parameter that matches one of the given sourcenames. |
Attributes
- cwl_utils.parser.cwl_v1_2_utils.SrcSink
- cwl_utils.parser.cwl_v1_2_utils.can_assign_src_to_sink(src, sink, strict=False)
Check for identical type specifications, ignoring extra keys like inputBinding.
src: admissible source types sink: admissible sink types
- 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.
- 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:
src_dict (Dict[str, Any]) –
sinks (MutableSequence[Union[cwl_utils.parser.cwl_v1_2.WorkflowStepInput, cwl_utils.parser.cwl_v1_2.WorkflowOutputParameter]]) –
param_to_step (Dict[str, cwl_utils.parser.cwl_v1_2.WorkflowStep]) –
type_dict (Dict[str, Any]) –
- Return type:
Dict[str, List[SrcSink]]
- cwl_utils.parser.cwl_v1_2_utils.check_types(srctype, sinktype, linkMerge, valueFrom=None)
Check if the source and sink types are correct.
Acceptable types are “pass”, “warning”, or “exception”.
- 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 (Optional[str]) –
loadingOptions (Optional[cwl_utils.parser.cwl_v1_2.LoadingOptions]) –
- 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 (Optional[cwl_utils.parser.cwl_v1_2.LoadingOptions]) –
- 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 (Optional[cwl_utils.parser.cwl_v1_2.LoadingOptions]) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_2_utils.merge_flatten_type(src)
Return the merge flattened type of the source type.
- Parameters:
src (Any) –
- 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 (Union[cwl_utils.parser.cwl_v1_2.CommandLineTool, cwl_utils.parser.cwl_v1_2.Workflow, cwl_utils.parser.cwl_v1_2.ExpressionTool]) –
parent (Optional[cwl_utils.parser.cwl_v1_2.Workflow]) –
linkMerge (Optional[str]) –
pickValue (Optional[str]) –
- Return type:
Any
- cwl_utils.parser.cwl_v1_2_utils.param_for_source_id(process, sourcenames, parent=None, scatter_context=None)
Find the process input parameter that matches one of the given sourcenames.
- Parameters:
process (Union[cwl_utils.parser.cwl_v1_2.CommandLineTool, cwl_utils.parser.cwl_v1_2.Workflow, cwl_utils.parser.cwl_v1_2.ExpressionTool]) –
parent (Optional[cwl_utils.parser.cwl_v1_2.Workflow]) –
scatter_context (Optional[List[Optional[Tuple[int, str]]]]) –
- Return type:
Union[List[cwl_utils.parser.cwl_v1_2.WorkflowInputParameter], cwl_utils.parser.cwl_v1_2.WorkflowInputParameter]
cwl_utils.parser.latest
Convenience module.
cwl_utils.parser.utils
CWL parser utility functions.
Module Contents
Functions
|
Convert stdin, stdout and stderr type shortcuts to files. |
|
Load a CWL input file from a URI or a path. |
|
Load a CWL input file from a serialized YAML string or a YAML object. |
|
Load a CWL input file from a serialized YAML string. |
|
Load a CWL input file from a YAML object. |
|
|
|
Check if all source and sink types of a workflow are compatible before run time. |
|
Determine the type for the given sourcenames. |
|
Determine the type for the given step output. |
|
Determine the type for the given step output. |
|
- cwl_utils.parser.utils.convert_stdstreams_to_files(process)
Convert stdin, stdout and stderr type shortcuts to files.
- Parameters:
process (cwl_utils.parser.Process) –
- Return type:
None
- cwl_utils.parser.utils.load_inputfile_by_uri(version, path, loadingOptions=None)
Load a CWL input file from a URI or a path.
- Parameters:
version (str) –
path (Union[str, pathlib.Path]) –
loadingOptions (Optional[cwl_utils.parser.LoadingOptions]) –
- Return type:
Any
- cwl_utils.parser.utils.load_inputfile(version, doc, baseuri=None, loadingOptions=None)
Load a CWL input file from a serialized YAML string or a YAML object.
- cwl_utils.parser.utils.load_inputfile_by_string(version, string, uri, loadingOptions=None)
Load a CWL input file from a serialized YAML string.
- cwl_utils.parser.utils.load_inputfile_by_yaml(version, yaml, uri, loadingOptions=None)
Load a CWL input file from a YAML object.
- cwl_utils.parser.utils.load_step(step)
- Parameters:
step (cwl_utils.parser.WorkflowStep) –
- Return type:
cwl_utils.parser.Process
- cwl_utils.parser.utils.static_checker(workflow)
Check if all source and sink types of a workflow are compatible before run time.
- Parameters:
workflow (cwl_utils.parser.Workflow) –
- Return type:
None
- cwl_utils.parser.utils.type_for_source(process, sourcenames, parent=None, linkMerge=None, pickValue=None)
Determine the type for the given sourcenames.
- cwl_utils.parser.utils.type_for_step_input(step, in_, cwlVersion)
Determine the type for the given step output.
- Parameters:
step (cwl_utils.parser.WorkflowStep) –
in_ (cwl_utils.parser.WorkflowStepInput) –
cwlVersion (str) –
- Return type:
Any
- cwl_utils.parser.utils.type_for_step_output(step, sourcename, cwlVersion)
Determine the type for the given step output.
- cwl_utils.parser.utils.param_for_source_id(process, sourcenames, parent=None, scatter_context=None)
- Parameters:
- Return type:
Union[Union[List[cwl_utils.parser.cwl_v1_0.InputParameter], cwl_utils.parser.cwl_v1_0.InputParameter], Union[List[cwl_utils.parser.cwl_v1_1.WorkflowInputParameter], cwl_utils.parser.cwl_v1_1.WorkflowInputParameter], Union[List[cwl_utils.parser.cwl_v1_2.WorkflowInputParameter], cwl_utils.parser.cwl_v1_2.WorkflowInputParameter]]
Package Contents
Functions
|
Return the cwlVersion of a YAML object. |
|
Load a CWL object from a URI or a path. |
|
Load a CWL object from a serialized YAML string or a YAML object. |
|
Load a CWL object from a serialized YAML string. |
|
Load a CWL object from a YAML object. |
|
Convert a CWL Python object into a JSON/YAML serializable object. |
|
Test to see if the object is a CWL v1.x Python Process object. |
|
Split a cwlVersion value into its numerical components. |
Attributes
Type union for a CWL v1.x LoadingOptions object. |
|
Type union for a CWL v1.x Saveable object. |
|
Type union for a CWL v1.x InputParameter object. |
|
Type union for a CWL v1.x OutputParameter object. |
|
Type union for a CWL v1.x Workflow object. |
|
Type union for a CWL v1.x WorkflowInputParameter object. |
|
Type union for a CWL v1.x WorkflowOutputParameter object. |
|
Type union for a CWL v1.x WorkflowStep object. |
|
Type union for a CWL v1.x WorkflowStepInput object. |
|
Type union for a CWL v1.x WorkflowStepOutput object. |
|
Type union for a CWL v1.x CommandLineTool object. |
|
Type union for a CWL v1.x CommandLineBinding object. |
|
Type union for a CWL v1.x CommandOutputParameter object. |
|
Type union for a CWL v1.x ExpressionTool object. |
|
Type union for a CWL v1.x DockerRequirement object. |
|
Type Union for a CWL v1.x Process object. |
|
Type Union for a CWL v1.x ProcessRequirement object. |
|
Type union for a CWL v1.x SoftwareRequirement object. |
|
Type Union for a CWL v1.x ArraySchema object. |
|
Type Union for a CWL v1.x EnumSchema object. |
|
Type Union for a CWL v1.x RecordSchema object. |
|
Type Union for a CWL v1.x File object. |
|
Type Union for a CWL v1.x SecondaryFileSchema object. |
|
Type Union for a CWL v1.x Directory object. |
|
Type Union for a CWL v1.x Dirent object. |
- exception cwl_utils.parser.GraphTargetMissingException
Bases:
WorkflowException
When a $graph is encountered and there is no target and no main/#main.
- cwl_utils.parser.LoadingOptions
Type union for a CWL v1.x LoadingOptions object.
- cwl_utils.parser.Saveable
Type union for a CWL v1.x Saveable object.
- cwl_utils.parser.InputParameter
Type union for a CWL v1.x InputParameter object.
- cwl_utils.parser.OutputParameter
Type union for a CWL v1.x OutputParameter object.
- cwl_utils.parser.Workflow
- cwl_utils.parser.WorkflowTypes = ()
Type union for a CWL v1.x Workflow object.
- cwl_utils.parser.WorkflowInputParameter
Type union for a CWL v1.x WorkflowInputParameter object.
- cwl_utils.parser.WorkflowOutputParameter
Type union for a CWL v1.x WorkflowOutputParameter object.
- cwl_utils.parser.WorkflowStep
Type union for a CWL v1.x WorkflowStep object.
- cwl_utils.parser.WorkflowStepInput
Type union for a CWL v1.x WorkflowStepInput object.
- cwl_utils.parser.WorkflowStepOutput
Type union for a CWL v1.x WorkflowStepOutput object.
- cwl_utils.parser.CommandLineTool
Type union for a CWL v1.x CommandLineTool object.
- cwl_utils.parser.CommandLineBinding
Type union for a CWL v1.x CommandLineBinding object.
- cwl_utils.parser.CommandOutputParameter
Type union for a CWL v1.x CommandOutputParameter object.
- cwl_utils.parser.ExpressionTool
Type union for a CWL v1.x ExpressionTool object.
- cwl_utils.parser.DockerRequirement
- cwl_utils.parser.DockerRequirementTypes = ()
Type union for a CWL v1.x DockerRequirement object.
- cwl_utils.parser.Process
Type Union for a CWL v1.x Process object.
- cwl_utils.parser.ProcessRequirement
Type Union for a CWL v1.x ProcessRequirement object.
- cwl_utils.parser.ProcessRequirementTypes = ()
- cwl_utils.parser.SoftwareRequirement
- cwl_utils.parser.SoftwareRequirementTypes = ()
Type union for a CWL v1.x SoftwareRequirement object.
- cwl_utils.parser.ArraySchema
Type Union for a CWL v1.x ArraySchema object.
- cwl_utils.parser.EnumSchema
Type Union for a CWL v1.x EnumSchema object.
- cwl_utils.parser.RecordSchema
Type Union for a CWL v1.x RecordSchema object.
- cwl_utils.parser.File
Type Union for a CWL v1.x File object.
- cwl_utils.parser.SecondaryFileSchema
Type Union for a CWL v1.x SecondaryFileSchema object.
- cwl_utils.parser.Directory
Type Union for a CWL v1.x Directory object.
- cwl_utils.parser.Dirent
Type Union for a CWL v1.x Dirent object.
- cwl_utils.parser.cwl_version(yaml)
Return the cwlVersion of a YAML object.
- Parameters:
yaml (Any) – ruamel.yaml object for a CWL document
- Raises:
ValidationException – If yaml is not a MutableMapping.
- Return type:
Optional[str]
- cwl_utils.parser.load_document_by_uri(path, loadingOptions=None, load_all=False)
Load a CWL object from a URI or a path.
- Parameters:
path (Union[str, pathlib.Path]) –
loadingOptions (Optional[LoadingOptions]) –
load_all (bool) –
- Return type:
Any
- cwl_utils.parser.load_document(doc, baseuri=None, loadingOptions=None, id_=None, load_all=False)
Load a CWL object from a serialized YAML string or a YAML object.
- Parameters:
doc (Any) –
baseuri (Optional[str]) –
loadingOptions (Optional[LoadingOptions]) –
id_ (Optional[str]) –
load_all (bool) –
- Return type:
Any
- cwl_utils.parser.load_document_by_string(string, uri, loadingOptions=None, id_=None, load_all=False)
Load a CWL object from a serialized YAML string.
- Parameters:
string (str) –
uri (str) –
loadingOptions (Optional[LoadingOptions]) –
id_ (Optional[str]) –
load_all (bool) –
- Return type:
Any
- cwl_utils.parser.load_document_by_yaml(yaml, uri, loadingOptions=None, id_=None, load_all=False)
Load a CWL object from a YAML object.
- Parameters:
yaml (Any) –
uri (str) –
loadingOptions (Optional[LoadingOptions]) –
id_ (Optional[str]) –
load_all (bool) –
- Return type:
Any
- cwl_utils.parser.save(val, top=True, base_url='', relative_uris=True)
Convert a CWL Python object into a JSON/YAML serializable object.
- cwl_utils.parser.is_process(v)
Test to see if the object is a CWL v1.x Python Process object.
- Parameters:
v (Any) –
- Return type:
Submodules
cwl_utils.__meta__
Global version number for the cwl_utils package.
Module Contents
- cwl_utils.__meta__.__version__ = '0.33'
cwl_utils.cite_extract
Module Contents
Functions
Construct the argument parser. |
|
|
Extract the software requirements. |
|
Console entry point. |
|
Return an iterator over any SoftwareRequirements found in the given process. |
Pretty print the software package information. |
|
|
Extract the software packages for this process, and any steps. |
|
Return the process for this step, loading it if needed. |
|
Iterate over the given workflow, extracting the software packages. |
- cwl_utils.cite_extract.arg_parser()
Construct the argument parser.
- Return type:
- cwl_utils.cite_extract.run(args)
Extract the software requirements.
- Parameters:
args (argparse.Namespace) –
- Return type:
- cwl_utils.cite_extract.extract_software_reqs(process)
Return an iterator over any SoftwareRequirements found in the given process.
- Parameters:
process (cwl_utils.parser.Process) –
- Return type:
Iterator[cwl_utils.parser.SoftwareRequirement]
- cwl_utils.cite_extract.process_software_requirement(req)
Pretty print the software package information.
- Parameters:
req (cwl_utils.parser.SoftwareRequirement) –
- Return type:
None
- cwl_utils.cite_extract.traverse(process)
Extract the software packages for this process, and any steps.
- Parameters:
process (cwl_utils.parser.Process) –
- Return type:
Iterator[cwl_utils.parser.SoftwareRequirement]
- cwl_utils.cite_extract.get_process_from_step(step)
Return the process for this step, loading it if needed.
- Parameters:
step (cwl_utils.parser.WorkflowStep) –
- Return type:
cwl_utils.parser.Process
- cwl_utils.cite_extract.traverse_workflow(workflow)
Iterate over the given workflow, extracting the software packages.
- Parameters:
workflow (cwl_utils.parser.Workflow) –
- Return type:
Iterator[cwl_utils.parser.SoftwareRequirement]
cwl_utils.cwl_v1_0_expression_refactor
CWL Expression refactoring tool for CWL v1.0 .
Module Contents
Functions
|
Rewrite the "type: stdout" shortcut to use an explicit random filename. |
|
Escape sequences similar to CWL expressions or param references. |
|
Simplify type identifiers. |
|
Find and return a normalized CWL expression, if any. |
|
Convert a ExpressionTool to a CommandLineTool. |
|
Convert the given process and any subprocesses. |
|
If the step's Process is not inline, load and process it. |
|
Convert a CWL Expression into an ExpressionTool. |
|
Determine the CommandInputParameter for the given input name. |
|
Return the expressionLib from the highest priority InlineJavascriptRequirement. |
|
Modify the given workflow, replacing the expr with an standalone ExpressionTool. |
|
Refactor all reference to a workflow input to the specified step output. |
|
Produce a mock input object for the given inputs. |
|
Produce a fake input for the given type. |
|
Do any needed conversions on the given Workflow's inputs and outputs. |
|
Convert any expressions in a workflow's reqs and hints. |
|
Convert expressions inside a process into new adjacent steps. |
|
Add a new InputParameter to the given CommandLineTool. |
|
Extract any CWL Expressions within the given CommandLineTool into sibling steps. |
|
Update step source names to the new name. |
|
Since the InlineJavascriptRequirement is longer needed, remove it. |
|
Convert a step level CWL Expression to a sibling expression step. |
|
Factor out an expression inside a CommandLineTool req or hint into a sibling step. |
Copy CommandLineTool input objects into the equivalent ExpressionTool input objects. |
|
|
Copy CommandLineTool outputs into the equivalent Workflow output parameters. |
|
Generate an ExpressionTool to achieve the same result as the given expression. |
|
Process the given WorkflowStep. |
|
Create InputParameters to match the given WorkflowStep inputs. |
|
Replace a WorkflowStep level 'valueFrom' expression with a sibling ExpressionTool step. |
|
Traverse a workflow, processing each step. |
Attributes
- cwl_utils.cwl_v1_0_expression_refactor.expand_stream_shortcuts(process)
Rewrite the “type: stdout” shortcut to use an explicit random filename.
- Parameters:
process (cwl_utils.parser.cwl_v1_0.CommandLineTool) –
- Return type:
- cwl_utils.cwl_v1_0_expression_refactor.escape_expression_field(contents)
Escape sequences similar to CWL expressions or param references.
- cwl_utils.cwl_v1_0_expression_refactor.clean_type_ids(cwltype)
Simplify type identifiers.
- Parameters:
cwltype (Union[cwl_utils.parser.cwl_v1_0.ArraySchema, cwl_utils.parser.cwl_v1_0.InputRecordSchema]) –
- Return type:
Union[cwl_utils.parser.cwl_v1_0.ArraySchema, cwl_utils.parser.cwl_v1_0.InputRecordSchema]
- cwl_utils.cwl_v1_0_expression_refactor.get_expression(string, inputs, self)
Find and return a normalized CWL expression, if any.
CWL expressions in the $() form are converted to the ${} form.
- cwl_utils.cwl_v1_0_expression_refactor.etool_to_cltool(etool, expressionLib=None)
Convert a ExpressionTool to a CommandLineTool.
- Parameters:
etool (cwl_utils.parser.cwl_v1_0.ExpressionTool) –
expressionLib (Optional[List[str]]) –
- Return type:
- cwl_utils.cwl_v1_0_expression_refactor.traverse(process, replace_etool, inside, skip_command_line1, skip_command_line2)
Convert the given process and any subprocesses.
- Parameters:
process (Union[cwl_utils.parser.cwl_v1_0.CommandLineTool, cwl_utils.parser.cwl_v1_0.ExpressionTool, cwl_utils.parser.cwl_v1_0.Workflow]) –
replace_etool (bool) –
inside (bool) –
skip_command_line1 (bool) –
skip_command_line2 (bool) –
- Return type:
Tuple[Union[cwl_utils.parser.cwl_v1_0.CommandLineTool, cwl_utils.parser.cwl_v1_0.ExpressionTool, cwl_utils.parser.cwl_v1_0.Workflow], bool]
- cwl_utils.cwl_v1_0_expression_refactor.load_step(step, replace_etool, skip_command_line1, skip_command_line2)
If the step’s Process is not inline, load and process it.
- cwl_utils.cwl_v1_0_expression_refactor.generate_etool_from_expr(expr, target, no_inputs=False, self_type=None, extra_processes=None)
Convert a CWL Expression into an ExpressionTool.
- Parameters:
expr (str) –
target (Union[cwl_utils.parser.cwl_v1_0.CommandInputParameter, cwl_utils.parser.cwl_v1_0.InputParameter]) –
no_inputs (bool) –
self_type (Optional[Union[cwl_utils.parser.cwl_v1_0.InputParameter, cwl_utils.parser.cwl_v1_0.CommandInputParameter, List[Union[cwl_utils.parser.cwl_v1_0.InputParameter, cwl_utils.parser.cwl_v1_0.CommandInputParameter]]]]) –
extra_processes (Optional[Sequence[Union[cwl_utils.parser.cwl_v1_0.Workflow, cwl_utils.parser.cwl_v1_0.WorkflowStep, cwl_utils.parser.cwl_v1_0.CommandLineTool]]]) –
- Return type:
- cwl_utils.cwl_v1_0_expression_refactor.get_input_for_id(name, tool)
Determine the CommandInputParameter for the given input name.
- Parameters:
name (str) –
tool (Union[cwl_utils.parser.cwl_v1_0.CommandLineTool, cwl_utils.parser.cwl_v1_0.Workflow]) –
- Return type:
- cwl_utils.cwl_v1_0_expression_refactor.find_expressionLib(processes)
Return the expressionLib from the highest priority InlineJavascriptRequirement.
processes: should be in order of least important to most important (Workflow, WorkflowStep, … CommandLineTool/ExpressionTool)
- Parameters:
processes (Sequence[Union[cwl_utils.parser.cwl_v1_0.CommandLineTool, cwl_utils.parser.cwl_v1_0.Workflow, cwl_utils.parser.cwl_v1_0.ExpressionTool, cwl_utils.parser.cwl_v1_0.WorkflowStep]]) –
- Return type:
Optional[List[str]]
- cwl_utils.cwl_v1_0_expression_refactor.replace_expr_with_etool(expr, name, workflow, target, source, replace_etool=False, extra_process=None, source_type=None)
Modify the given workflow, replacing the expr with an standalone ExpressionTool.
- Parameters:
expr (str) –
name (str) –
workflow (cwl_utils.parser.cwl_v1_0.Workflow) –
target (Union[cwl_utils.parser.cwl_v1_0.CommandInputParameter, cwl_utils.parser.cwl_v1_0.InputParameter]) –
source (Optional[Union[str, List[Any]]]) –
replace_etool (bool) –
extra_process (Optional[Union[cwl_utils.parser.cwl_v1_0.Workflow, cwl_utils.parser.cwl_v1_0.WorkflowStep, cwl_utils.parser.cwl_v1_0.CommandLineTool]]) –
source_type (Optional[cwl_utils.parser.cwl_v1_0.CommandInputParameter]) –
- Return type:
None
- cwl_utils.cwl_v1_0_expression_refactor.replace_wf_input_ref_with_step_output(workflow, name, target)
Refactor all reference to a workflow input to the specified step output.
- Parameters:
workflow (cwl_utils.parser.cwl_v1_0.Workflow) –
name (str) –
target (str) –
- Return type:
None
- cwl_utils.cwl_v1_0_expression_refactor.empty_inputs(process_or_step, parent=None)
Produce a mock input object for the given inputs.
- Parameters:
process_or_step (Union[cwl_utils.parser.cwl_v1_0.CommandLineTool, cwl_utils.parser.cwl_v1_0.WorkflowStep, cwl_utils.parser.cwl_v1_0.ExpressionTool, cwl_utils.parser.cwl_v1_0.Workflow]) –
parent (Optional[cwl_utils.parser.cwl_v1_0.Workflow]) –
- Return type:
Dict[str, Any]
- cwl_utils.cwl_v1_0_expression_refactor.example_input(some_type)
Produce a fake input for the given type.
- Parameters:
some_type (Any) –
- Return type:
Any
- cwl_utils.cwl_v1_0_expression_refactor.EMPTY_FILE: cwl_utils.types.CWLOutputType
- cwl_utils.cwl_v1_0_expression_refactor.TOPLEVEL_SF_EXPR_ERROR = "Input '{}'. Sorry, CWL Expressions as part of a secondaryFiles specification in a Workflow level..."
- cwl_utils.cwl_v1_0_expression_refactor.TOPLEVEL_FORMAT_EXPR_ERROR = "Input '{}'. Sorry, CWL Expressions as part of a format specification in a Workflow level input..."
- cwl_utils.cwl_v1_0_expression_refactor.process_workflow_inputs_and_outputs(workflow, replace_etool)
Do any needed conversions on the given Workflow’s inputs and outputs.
- Parameters:
workflow (cwl_utils.parser.cwl_v1_0.Workflow) –
replace_etool (bool) –
- Return type:
- cwl_utils.cwl_v1_0_expression_refactor.process_workflow_reqs_and_hints(workflow, replace_etool)
Convert any expressions in a workflow’s reqs and hints.
Each expression will be converted to an additional step. The converted requirement will be copied to all workflow steps that don’t have that requirement type. Those affected steps will gain an additional input from the relevant synthesized expression step.
- Parameters:
workflow (cwl_utils.parser.cwl_v1_0.Workflow) –
replace_etool (bool) –
- Return type:
- cwl_utils.cwl_v1_0_expression_refactor.process_level_reqs(process, step, parent, replace_etool, skip_command_line1, skip_command_line2)
Convert expressions inside a process into new adjacent steps.
- Parameters:
process (cwl_utils.parser.cwl_v1_0.CommandLineTool) –
parent (cwl_utils.parser.cwl_v1_0.Workflow) –
replace_etool (bool) –
skip_command_line1 (bool) –
skip_command_line2 (bool) –
- Return type:
- cwl_utils.cwl_v1_0_expression_refactor.add_input_to_process(process, name, inptype, loadingOptions)
Add a new InputParameter to the given CommandLineTool.
- Parameters:
process (cwl_utils.parser.cwl_v1_0.Process) –
name (str) –
inptype (Any) –
loadingOptions (cwl_utils.parser.cwl_v1_0.LoadingOptions) –
- Return type:
None
- cwl_utils.cwl_v1_0_expression_refactor.traverse_CommandLineTool(clt, parent, step, replace_etool, skip_command_line1, skip_command_line2)
Extract any CWL Expressions within the given CommandLineTool into sibling steps.
- Parameters:
parent (cwl_utils.parser.cwl_v1_0.Workflow) –
replace_etool (bool) –
skip_command_line1 (bool) –
skip_command_line2 (bool) –
- Return type:
- cwl_utils.cwl_v1_0_expression_refactor.rename_step_source(workflow, old, new)
Update step source names to the new name.
- Parameters:
workflow (cwl_utils.parser.cwl_v1_0.Workflow) –
old (str) –
new (str) –
- Return type:
None
- cwl_utils.cwl_v1_0_expression_refactor.remove_JSReq(process, skip_command_line1)
Since the InlineJavascriptRequirement is longer needed, remove it.
- Parameters:
process (Union[cwl_utils.parser.cwl_v1_0.CommandLineTool, cwl_utils.parser.cwl_v1_0.WorkflowStep, cwl_utils.parser.cwl_v1_0.Workflow]) –
skip_command_line1 (bool) –
- Return type:
None
- cwl_utils.cwl_v1_0_expression_refactor.replace_step_clt_expr_with_etool(expr, name, workflow, target, step, replace_etool, self_name=None)
Convert a step level CWL Expression to a sibling expression step.
- Parameters:
expr (str) –
name (str) –
workflow (cwl_utils.parser.cwl_v1_0.Workflow) –
target (cwl_utils.parser.cwl_v1_0.InputParameter) –
replace_etool (bool) –
self_name (Optional[str]) –
- Return type:
None
- cwl_utils.cwl_v1_0_expression_refactor.replace_clt_hintreq_expr_with_etool(expr, name, workflow, target, step, replace_etool, self_name=None)
Factor out an expression inside a CommandLineTool req or hint into a sibling step.
- Parameters:
expr (str) –
name (str) –
workflow (cwl_utils.parser.cwl_v1_0.Workflow) –
target (cwl_utils.parser.cwl_v1_0.InputParameter) –
replace_etool (bool) –
self_name (Optional[str]) –
- Return type:
Union[cwl_utils.parser.cwl_v1_0.CommandLineTool, cwl_utils.parser.cwl_v1_0.ExpressionTool]
- cwl_utils.cwl_v1_0_expression_refactor.cltool_inputs_to_etool_inputs(tool)
Copy CommandLineTool input objects into the equivalent ExpressionTool input objects.
- Parameters:
- Return type:
- cwl_utils.cwl_v1_0_expression_refactor.cltool_step_outputs_to_workflow_outputs(cltool_step, etool_step_id, etool_out_id)
Copy CommandLineTool outputs into the equivalent Workflow output parameters.
Connects the outputSources for each of the new output parameters to the step they came from.
- Parameters:
cltool_step (cwl_utils.parser.cwl_v1_0.WorkflowStep) –
etool_step_id (str) –
etool_out_id (str) –
- Return type:
- cwl_utils.cwl_v1_0_expression_refactor.generate_etool_from_expr2(expr, target, inputs, self_name=None, process=None, extra_processes=None)
Generate an ExpressionTool to achieve the same result as the given expression.
- Parameters:
expr (str) –
target (cwl_utils.parser.cwl_v1_0.InputParameter) –
inputs (Sequence[Union[cwl_utils.parser.cwl_v1_0.InputParameter, cwl_utils.parser.cwl_v1_0.CommandInputParameter]]) –
self_name (Optional[str]) –
process (Optional[Union[cwl_utils.parser.cwl_v1_0.CommandLineTool, cwl_utils.parser.cwl_v1_0.ExpressionTool]]) –
extra_processes (Optional[Sequence[Union[cwl_utils.parser.cwl_v1_0.Workflow, cwl_utils.parser.cwl_v1_0.WorkflowStep, cwl_utils.parser.cwl_v1_0.CommandLineTool]]]) –
- Return type:
- cwl_utils.cwl_v1_0_expression_refactor.traverse_step(step, parent, replace_etool, skip_command_line1, skip_command_line2)
Process the given WorkflowStep.
- Parameters:
parent (cwl_utils.parser.cwl_v1_0.Workflow) –
replace_etool (bool) –
skip_command_line1 (bool) –
skip_command_line2 (bool) –
- Return type:
- cwl_utils.cwl_v1_0_expression_refactor.workflow_step_to_InputParameters(step_ins, parent, except_in_id)
Create InputParameters to match the given WorkflowStep inputs.
- Parameters:
step_ins (List[cwl_utils.parser.cwl_v1_0.WorkflowStepInput]) –
parent (cwl_utils.parser.cwl_v1_0.Workflow) –
except_in_id (str) –
- Return type:
- cwl_utils.cwl_v1_0_expression_refactor.replace_step_valueFrom_expr_with_etool(expr, name, workflow, target, step, step_inp, original_process, original_step_ins, source, replace_etool, source_type=None)
Replace a WorkflowStep level ‘valueFrom’ expression with a sibling ExpressionTool step.
- Parameters:
expr (str) –
name (str) –
workflow (cwl_utils.parser.cwl_v1_0.Workflow) –
target (Union[cwl_utils.parser.cwl_v1_0.CommandInputParameter, cwl_utils.parser.cwl_v1_0.InputParameter]) –
step_inp (cwl_utils.parser.cwl_v1_0.WorkflowStepInput) –
original_process (Union[cwl_utils.parser.cwl_v1_0.CommandLineTool, cwl_utils.parser.cwl_v1_0.ExpressionTool]) –
original_step_ins (List[cwl_utils.parser.cwl_v1_0.WorkflowStepInput]) –
replace_etool (bool) –
source_type (Optional[Union[cwl_utils.parser.cwl_v1_0.InputParameter, List[cwl_utils.parser.cwl_v1_0.InputParameter]]]) –
- Return type:
None
- cwl_utils.cwl_v1_0_expression_refactor.traverse_workflow(workflow, replace_etool, skip_command_line1, skip_command_line2)
Traverse a workflow, processing each step.
- Parameters:
workflow (cwl_utils.parser.cwl_v1_0.Workflow) –
replace_etool (bool) –
skip_command_line1 (bool) –
skip_command_line2 (bool) –
- Return type:
cwl_utils.cwl_v1_1_expression_refactor
CWL Expression refactoring tool for CWL v1.1 .
Module Contents
Functions
|
Rewrite the "type: stdout" shortcut to use an explicit random filename. |
|
Escape sequences similar to CWL expressions or param references. |
|
Simplify type identifiers. |
|
Find and return a normalized CWL expression, if any. |
|
Convert a ExpressionTool to a CommandLineTool. |
|
Convert the given process and any subprocesses. |
|
If the step's Process is not inline, load and process it. |
|
Convert a CWL Expression into an ExpressionTool. |
|
Determine the CommandInputParameter for the given input name. |
|
Return the expressionLib from the highest priority InlineJavascriptRequirement. |
|
Modify the given workflow, replacing the expr with an standalone ExpressionTool. |
|
Refactor all reference to a workflow input to the specified step output. |
|
Produce a mock input object for the given inputs. |
|
Produce a fake input for the given type. |
|
Do any needed conversions on the given Workflow's inputs and outputs. |
|
Convert any expressions in a workflow's reqs and hints. |
|
Convert expressions inside a process into new adjacent steps. |
|
Add a new InputParameter to the given CommandLineTool. |
|
Extract any CWL Expressions within the given CommandLineTool into sibling steps. |
|
Update step source names to the new name. |
|
Since the InlineJavascriptRequirement is longer needed, remove it. |
|
Convert a step level CWL Expression to a sibling expression step. |
|
Factor out an expression inside a CommandLineTool req or hint into a sibling step. |
Copy CommandLineTool input objects into the equivalent ExpressionTool input objects. |
|
|
Copy CommandLineTool outputs into the equivalent Workflow output parameters. |
|
Generate an ExpressionTool to achieve the same result as the given expression. |
|
Process the given WorkflowStep. |
|
Create WorkflowInputParameters to match the given WorkflowStep inputs. |
|
Replace a WorkflowStep level 'valueFrom' expression with a sibling ExpressionTool step. |
|
Traverse a workflow, processing each step. |
Attributes
- cwl_utils.cwl_v1_1_expression_refactor.expand_stream_shortcuts(process)
Rewrite the “type: stdout” shortcut to use an explicit random filename.
- Parameters:
process (cwl_utils.parser.cwl_v1_1.CommandLineTool) –
- Return type:
- cwl_utils.cwl_v1_1_expression_refactor.escape_expression_field(contents)
Escape sequences similar to CWL expressions or param references.
- cwl_utils.cwl_v1_1_expression_refactor.clean_type_ids(cwltype)
Simplify type identifiers.
- Parameters:
cwltype (Union[cwl_utils.parser.cwl_v1_1.ArraySchema, cwl_utils.parser.cwl_v1_1.InputRecordSchema]) –
- Return type:
Union[cwl_utils.parser.cwl_v1_1.ArraySchema, cwl_utils.parser.cwl_v1_1.InputRecordSchema]
- cwl_utils.cwl_v1_1_expression_refactor.get_expression(string, inputs, self)
Find and return a normalized CWL expression, if any.
CWL expressions in the $() form are converted to the ${} form.
- cwl_utils.cwl_v1_1_expression_refactor.etool_to_cltool(etool, expressionLib=None)
Convert a ExpressionTool to a CommandLineTool.
- Parameters:
etool (cwl_utils.parser.cwl_v1_1.ExpressionTool) –
expressionLib (Optional[List[str]]) –
- Return type:
- cwl_utils.cwl_v1_1_expression_refactor.traverse(process, replace_etool, inside, skip_command_line1, skip_command_line2)
Convert the given process and any subprocesses.
- Parameters:
process (Union[cwl_utils.parser.cwl_v1_1.CommandLineTool, cwl_utils.parser.cwl_v1_1.ExpressionTool, cwl_utils.parser.cwl_v1_1.Workflow]) –
replace_etool (bool) –
inside (bool) –
skip_command_line1 (bool) –
skip_command_line2 (bool) –
- Return type:
Tuple[Union[cwl_utils.parser.cwl_v1_1.CommandLineTool, cwl_utils.parser.cwl_v1_1.ExpressionTool, cwl_utils.parser.cwl_v1_1.Workflow], bool]
- cwl_utils.cwl_v1_1_expression_refactor.load_step(step, replace_etool, skip_command_line1, skip_command_line2)
If the step’s Process is not inline, load and process it.
- cwl_utils.cwl_v1_1_expression_refactor.generate_etool_from_expr(expr, target, no_inputs=False, self_type=None, extra_processes=None)
Convert a CWL Expression into an ExpressionTool.
- Parameters:
expr (str) –
target (Union[cwl_utils.parser.cwl_v1_1.CommandInputParameter, cwl_utils.parser.cwl_v1_1.WorkflowInputParameter]) –
no_inputs (bool) –
self_type (Optional[Union[cwl_utils.parser.cwl_v1_1.WorkflowInputParameter, cwl_utils.parser.cwl_v1_1.CommandInputParameter, List[Union[cwl_utils.parser.cwl_v1_1.WorkflowInputParameter, cwl_utils.parser.cwl_v1_1.CommandInputParameter]]]]) –
extra_processes (Optional[Sequence[Union[cwl_utils.parser.cwl_v1_1.Workflow, cwl_utils.parser.cwl_v1_1.WorkflowStep, cwl_utils.parser.cwl_v1_1.CommandLineTool]]]) –
- Return type:
- cwl_utils.cwl_v1_1_expression_refactor.get_input_for_id(name, tool)
Determine the CommandInputParameter for the given input name.
- Parameters:
name (str) –
tool (Union[cwl_utils.parser.cwl_v1_1.CommandLineTool, cwl_utils.parser.cwl_v1_1.Workflow]) –
- Return type:
- cwl_utils.cwl_v1_1_expression_refactor.find_expressionLib(processes)
Return the expressionLib from the highest priority InlineJavascriptRequirement.
processes: should be in order of least important to most important (Workflow, WorkflowStep, … CommandLineTool/ExpressionTool)
- Parameters:
processes (Sequence[Union[cwl_utils.parser.cwl_v1_1.CommandLineTool, cwl_utils.parser.cwl_v1_1.Workflow, cwl_utils.parser.cwl_v1_1.ExpressionTool, cwl_utils.parser.cwl_v1_1.WorkflowStep]]) –
- Return type:
Optional[List[str]]
- cwl_utils.cwl_v1_1_expression_refactor.replace_expr_with_etool(expr, name, workflow, target, source, replace_etool=False, extra_process=None, source_type=None)
Modify the given workflow, replacing the expr with an standalone ExpressionTool.
- Parameters:
expr (str) –
name (str) –
workflow (cwl_utils.parser.cwl_v1_1.Workflow) –
target (Union[cwl_utils.parser.cwl_v1_1.CommandInputParameter, cwl_utils.parser.cwl_v1_1.WorkflowInputParameter]) –
source (Optional[Union[str, List[Any]]]) –
replace_etool (bool) –
extra_process (Optional[Union[cwl_utils.parser.cwl_v1_1.Workflow, cwl_utils.parser.cwl_v1_1.WorkflowStep, cwl_utils.parser.cwl_v1_1.CommandLineTool]]) –
source_type (Optional[cwl_utils.parser.cwl_v1_1.CommandInputParameter]) –
- Return type:
None
- cwl_utils.cwl_v1_1_expression_refactor.replace_wf_input_ref_with_step_output(workflow, name, target)
Refactor all reference to a workflow input to the specified step output.
- Parameters:
workflow (cwl_utils.parser.cwl_v1_1.Workflow) –
name (str) –
target (str) –
- Return type:
None
- cwl_utils.cwl_v1_1_expression_refactor.empty_inputs(process_or_step, parent=None)
Produce a mock input object for the given inputs.
- Parameters:
process_or_step (Union[cwl_utils.parser.cwl_v1_1.CommandLineTool, cwl_utils.parser.cwl_v1_1.WorkflowStep, cwl_utils.parser.cwl_v1_1.ExpressionTool, cwl_utils.parser.cwl_v1_1.Workflow]) –
parent (Optional[cwl_utils.parser.cwl_v1_1.Workflow]) –
- Return type:
Dict[str, Any]
- cwl_utils.cwl_v1_1_expression_refactor.example_input(some_type)
Produce a fake input for the given type.
- Parameters:
some_type (Any) –
- Return type:
Any
- cwl_utils.cwl_v1_1_expression_refactor.EMPTY_FILE: cwl_utils.types.CWLOutputType
- cwl_utils.cwl_v1_1_expression_refactor.TOPLEVEL_SF_EXPR_ERROR = "Input '{}'. Sorry, CWL Expressions as part of a secondaryFiles specification in a Workflow level..."
- cwl_utils.cwl_v1_1_expression_refactor.TOPLEVEL_FORMAT_EXPR_ERROR = "Input '{}'. Sorry, CWL Expressions as part of a format specification in a Workflow level input..."
- cwl_utils.cwl_v1_1_expression_refactor.process_workflow_inputs_and_outputs(workflow, replace_etool)
Do any needed conversions on the given Workflow’s inputs and outputs.
- Parameters:
workflow (cwl_utils.parser.cwl_v1_1.Workflow) –
replace_etool (bool) –
- Return type:
- cwl_utils.cwl_v1_1_expression_refactor.process_workflow_reqs_and_hints(workflow, replace_etool)
Convert any expressions in a workflow’s reqs and hints.
Each expression will be converted to an additional step. The converted requirement will be copied to all workflow steps that don’t have that requirement type. Those affected steps will gain an additional input from the relevant synthesized expression step.
- Parameters:
workflow (cwl_utils.parser.cwl_v1_1.Workflow) –
replace_etool (bool) –
- Return type:
- cwl_utils.cwl_v1_1_expression_refactor.process_level_reqs(process, step, parent, replace_etool, skip_command_line1, skip_command_line2)
Convert expressions inside a process into new adjacent steps.
- Parameters:
process (cwl_utils.parser.cwl_v1_1.CommandLineTool) –
parent (cwl_utils.parser.cwl_v1_1.Workflow) –
replace_etool (bool) –
skip_command_line1 (bool) –
skip_command_line2 (bool) –
- Return type:
- cwl_utils.cwl_v1_1_expression_refactor.add_input_to_process(process, name, inptype, loadingOptions)
Add a new InputParameter to the given CommandLineTool.
- Parameters:
process (cwl_utils.parser.cwl_v1_1.Process) –
name (str) –
inptype (Any) –
loadingOptions (cwl_utils.parser.cwl_v1_1.LoadingOptions) –
- Return type:
None
- cwl_utils.cwl_v1_1_expression_refactor.traverse_CommandLineTool(clt, parent, step, replace_etool, skip_command_line1, skip_command_line2)
Extract any CWL Expressions within the given CommandLineTool into sibling steps.
- Parameters:
parent (cwl_utils.parser.cwl_v1_1.Workflow) –
replace_etool (bool) –
skip_command_line1 (bool) –
skip_command_line2 (bool) –
- Return type:
- cwl_utils.cwl_v1_1_expression_refactor.rename_step_source(workflow, old, new)
Update step source names to the new name.
- Parameters:
workflow (cwl_utils.parser.cwl_v1_1.Workflow) –
old (str) –
new (str) –
- Return type:
None
- cwl_utils.cwl_v1_1_expression_refactor.remove_JSReq(process, skip_command_line1)
Since the InlineJavascriptRequirement is longer needed, remove it.
- Parameters:
process (Union[cwl_utils.parser.cwl_v1_1.CommandLineTool, cwl_utils.parser.cwl_v1_1.WorkflowStep, cwl_utils.parser.cwl_v1_1.Workflow]) –
skip_command_line1 (bool) –
- Return type:
None
- cwl_utils.cwl_v1_1_expression_refactor.replace_step_clt_expr_with_etool(expr, name, workflow, target, step, replace_etool, self_name=None)
Convert a step level CWL Expression to a sibling expression step.
- Parameters:
expr (str) –
name (str) –
workflow (cwl_utils.parser.cwl_v1_1.Workflow) –
replace_etool (bool) –
self_name (Optional[str]) –
- Return type:
None
- cwl_utils.cwl_v1_1_expression_refactor.replace_clt_hintreq_expr_with_etool(expr, name, workflow, target, step, replace_etool, self_name=None)
Factor out an expression inside a CommandLineTool req or hint into a sibling step.
- Parameters:
expr (str) –
name (str) –
workflow (cwl_utils.parser.cwl_v1_1.Workflow) –
replace_etool (bool) –
self_name (Optional[str]) –
- Return type:
Union[cwl_utils.parser.cwl_v1_1.CommandLineTool, cwl_utils.parser.cwl_v1_1.ExpressionTool]
- cwl_utils.cwl_v1_1_expression_refactor.cltool_inputs_to_etool_inputs(tool)
Copy CommandLineTool input objects into the equivalent ExpressionTool input objects.
- Parameters:
- Return type:
- cwl_utils.cwl_v1_1_expression_refactor.cltool_step_outputs_to_workflow_outputs(cltool_step, etool_step_id, etool_out_id)
Copy CommandLineTool outputs into the equivalent Workflow output parameters.
Connects the outputSources for each of the new output parameters to the step they came from.
- Parameters:
cltool_step (cwl_utils.parser.cwl_v1_1.WorkflowStep) –
etool_step_id (str) –
etool_out_id (str) –
- Return type:
- cwl_utils.cwl_v1_1_expression_refactor.generate_etool_from_expr2(expr, target, inputs, self_name=None, process=None, extra_processes=None)
Generate an ExpressionTool to achieve the same result as the given expression.
- Parameters:
expr (str) –
target (Union[cwl_utils.parser.cwl_v1_1.CommandInputParameter, cwl_utils.parser.cwl_v1_1.WorkflowInputParameter]) –
inputs (Sequence[Union[cwl_utils.parser.cwl_v1_1.WorkflowInputParameter, cwl_utils.parser.cwl_v1_1.CommandInputParameter]]) –
self_name (Optional[str]) –
process (Optional[Union[cwl_utils.parser.cwl_v1_1.CommandLineTool, cwl_utils.parser.cwl_v1_1.ExpressionTool]]) –
extra_processes (Optional[Sequence[Union[cwl_utils.parser.cwl_v1_1.Workflow, cwl_utils.parser.cwl_v1_1.WorkflowStep, cwl_utils.parser.cwl_v1_1.CommandLineTool]]]) –
- Return type:
- cwl_utils.cwl_v1_1_expression_refactor.traverse_step(step, parent, replace_etool, skip_command_line1, skip_command_line2)
Process the given WorkflowStep.
- Parameters:
parent (cwl_utils.parser.cwl_v1_1.Workflow) –
replace_etool (bool) –
skip_command_line1 (bool) –
skip_command_line2 (bool) –
- Return type:
- cwl_utils.cwl_v1_1_expression_refactor.workflow_step_to_WorkflowInputParameters(step_ins, parent, except_in_id)
Create WorkflowInputParameters to match the given WorkflowStep inputs.
- Parameters:
step_ins (List[cwl_utils.parser.cwl_v1_1.WorkflowStepInput]) –
parent (cwl_utils.parser.cwl_v1_1.Workflow) –
except_in_id (str) –
- Return type:
- cwl_utils.cwl_v1_1_expression_refactor.replace_step_valueFrom_expr_with_etool(expr, name, workflow, target, step, step_inp, original_process, original_step_ins, source, replace_etool, source_type=None)
Replace a WorkflowStep level ‘valueFrom’ expression with a sibling ExpressionTool step.
- Parameters:
expr (str) –
name (str) –
workflow (cwl_utils.parser.cwl_v1_1.Workflow) –
target (Union[cwl_utils.parser.cwl_v1_1.CommandInputParameter, cwl_utils.parser.cwl_v1_1.WorkflowInputParameter]) –
step_inp (cwl_utils.parser.cwl_v1_1.WorkflowStepInput) –
original_process (Union[cwl_utils.parser.cwl_v1_1.CommandLineTool, cwl_utils.parser.cwl_v1_1.ExpressionTool]) –
original_step_ins (List[cwl_utils.parser.cwl_v1_1.WorkflowStepInput]) –
replace_etool (bool) –
source_type (Optional[Union[cwl_utils.parser.cwl_v1_1.WorkflowInputParameter, List[cwl_utils.parser.cwl_v1_1.WorkflowInputParameter]]]) –
- Return type:
None
- cwl_utils.cwl_v1_1_expression_refactor.traverse_workflow(workflow, replace_etool, skip_command_line1, skip_command_line2)
Traverse a workflow, processing each step.
- Parameters:
workflow (cwl_utils.parser.cwl_v1_1.Workflow) –
replace_etool (bool) –
skip_command_line1 (bool) –
skip_command_line2 (bool) –
- Return type:
cwl_utils.cwl_v1_2_expression_refactor
CWL Expression refactoring tool for CWL v1.2 .
Module Contents
Functions
|
Rewrite the "type: stdout" shortcut to use an explicit random filename. |
|
Escape sequences similar to CWL expressions or param references. |
|
Simplify type identifiers. |
|
Find and return a normalized CWL expression, if any. |
|
Convert a ExpressionTool to a CommandLineTool. |
|
Convert the given process and any subprocesses. |
|
If the step's Process is not inline, load and process it. |
|
Convert a CWL Expression into an ExpressionTool. |
|
Determine the CommandInputParameter for the given input name. |
|
Return the expressionLib from the highest priority InlineJavascriptRequirement. |
|
Modify the given workflow, replacing the expr with an standalone ExpressionTool. |
|
Refactor all reference to a workflow input to the specified step output. |
|
Produce a mock input object for the given inputs. |
|
Produce a fake input for the given type. |
|
Do any needed conversions on the given Workflow's inputs and outputs. |
|
Convert any expressions in a workflow's reqs and hints. |
|
Convert expressions inside a process into new adjacent steps. |
|
Add a new InputParameter to the given CommandLineTool. |
|
Extract any CWL Expressions within the given CommandLineTool into sibling steps. |
|
Update step source names to the new name. |
|
Since the InlineJavascriptRequirement is longer needed, remove it. |
|
Convert a step level CWL Expression to a sibling expression step. |
|
Factor out an expression inside a CommandLineTool req or hint into a sibling step. |
Copy CommandLineTool input objects into the equivalent ExpressionTool input objects. |
|
|
Copy CommandLineTool outputs into the equivalent Workflow output parameters. |
|
Generate an ExpressionTool to achieve the same result as the given expression. |
|
Process the given WorkflowStep. |
|
Create WorkflowInputParameters to match the given WorkflowStep inputs. |
|
Replace a WorkflowStep level 'valueFrom' expression with a sibling ExpressionTool step. |
|
Replace a WorkflowStep level 'when' expression with a sibling ExpressionTool step. |
|
Traverse a workflow, processing each step. |
Attributes
- cwl_utils.cwl_v1_2_expression_refactor.expand_stream_shortcuts(process)
Rewrite the “type: stdout” shortcut to use an explicit random filename.
- Parameters:
process (cwl_utils.parser.cwl_v1_2.CommandLineTool) –
- Return type:
- cwl_utils.cwl_v1_2_expression_refactor.escape_expression_field(contents)
Escape sequences similar to CWL expressions or param references.
- cwl_utils.cwl_v1_2_expression_refactor.clean_type_ids(cwltype)
Simplify type identifiers.
- Parameters:
cwltype (Union[cwl_utils.parser.cwl_v1_2.ArraySchema, cwl_utils.parser.cwl_v1_2.InputRecordSchema]) –
- Return type:
Union[cwl_utils.parser.cwl_v1_2.ArraySchema, cwl_utils.parser.cwl_v1_2.InputRecordSchema]
- cwl_utils.cwl_v1_2_expression_refactor.get_expression(string, inputs, self)
Find and return a normalized CWL expression, if any.
CWL expressions in the $() form are converted to the ${} form.
- cwl_utils.cwl_v1_2_expression_refactor.etool_to_cltool(etool, expressionLib=None)
Convert a ExpressionTool to a CommandLineTool.
- Parameters:
etool (cwl_utils.parser.cwl_v1_2.ExpressionTool) –
expressionLib (Optional[List[str]]) –
- Return type:
- cwl_utils.cwl_v1_2_expression_refactor.traverse(process, replace_etool, inside, skip_command_line1, skip_command_line2)
Convert the given process and any subprocesses.
- Parameters:
process (Union[cwl_utils.parser.cwl_v1_2.CommandLineTool, cwl_utils.parser.cwl_v1_2.ExpressionTool, cwl_utils.parser.cwl_v1_2.Workflow]) –
replace_etool (bool) –
inside (bool) –
skip_command_line1 (bool) –
skip_command_line2 (bool) –
- Return type:
Tuple[Union[cwl_utils.parser.cwl_v1_2.CommandLineTool, cwl_utils.parser.cwl_v1_2.ExpressionTool, cwl_utils.parser.cwl_v1_2.Workflow], bool]
- cwl_utils.cwl_v1_2_expression_refactor.load_step(step, replace_etool, skip_command_line1, skip_command_line2)
If the step’s Process is not inline, load and process it.
- cwl_utils.cwl_v1_2_expression_refactor.generate_etool_from_expr(expr, target, no_inputs=False, self_type=None, extra_processes=None)
Convert a CWL Expression into an ExpressionTool.
- Parameters:
expr (str) –
target (Union[cwl_utils.parser.cwl_v1_2.CommandInputParameter, cwl_utils.parser.cwl_v1_2.WorkflowInputParameter]) –
no_inputs (bool) –
self_type (Optional[Union[cwl_utils.parser.cwl_v1_2.WorkflowInputParameter, cwl_utils.parser.cwl_v1_2.CommandInputParameter, List[Union[cwl_utils.parser.cwl_v1_2.WorkflowInputParameter, cwl_utils.parser.cwl_v1_2.CommandInputParameter]]]]) –
extra_processes (Optional[Sequence[Union[cwl_utils.parser.cwl_v1_2.Workflow, cwl_utils.parser.cwl_v1_2.WorkflowStep, cwl_utils.parser.cwl_v1_2.CommandLineTool]]]) –
- Return type:
- cwl_utils.cwl_v1_2_expression_refactor.get_input_for_id(name, tool)
Determine the CommandInputParameter for the given input name.
- Parameters:
name (str) –
tool (Union[cwl_utils.parser.cwl_v1_2.CommandLineTool, cwl_utils.parser.cwl_v1_2.Workflow]) –
- Return type:
- cwl_utils.cwl_v1_2_expression_refactor.find_expressionLib(processes)
Return the expressionLib from the highest priority InlineJavascriptRequirement.
processes: should be in order of least important to most important (Workflow, WorkflowStep, … CommandLineTool/ExpressionTool)
- Parameters:
processes (Sequence[Union[cwl_utils.parser.cwl_v1_2.CommandLineTool, cwl_utils.parser.cwl_v1_2.Workflow, cwl_utils.parser.cwl_v1_2.ExpressionTool, cwl_utils.parser.cwl_v1_2.WorkflowStep]]) –
- Return type:
Optional[List[str]]
- cwl_utils.cwl_v1_2_expression_refactor.replace_expr_with_etool(expr, name, workflow, target, source, replace_etool=False, extra_process=None, source_type=None)
Modify the given workflow, replacing the expr with an standalone ExpressionTool.
- Parameters:
expr (str) –
name (str) –
workflow (cwl_utils.parser.cwl_v1_2.Workflow) –
target (Union[cwl_utils.parser.cwl_v1_2.CommandInputParameter, cwl_utils.parser.cwl_v1_2.WorkflowInputParameter]) –
source (Optional[Union[str, List[Any]]]) –
replace_etool (bool) –
extra_process (Optional[Union[cwl_utils.parser.cwl_v1_2.Workflow, cwl_utils.parser.cwl_v1_2.WorkflowStep, cwl_utils.parser.cwl_v1_2.CommandLineTool]]) –
source_type (Optional[cwl_utils.parser.cwl_v1_2.CommandInputParameter]) –
- Return type:
None
- cwl_utils.cwl_v1_2_expression_refactor.replace_wf_input_ref_with_step_output(workflow, name, target)
Refactor all reference to a workflow input to the specified step output.
- Parameters:
workflow (cwl_utils.parser.cwl_v1_2.Workflow) –
name (str) –
target (str) –
- Return type:
None
- cwl_utils.cwl_v1_2_expression_refactor.empty_inputs(process_or_step, parent=None)
Produce a mock input object for the given inputs.
- Parameters:
process_or_step (Union[cwl_utils.parser.cwl_v1_2.CommandLineTool, cwl_utils.parser.cwl_v1_2.WorkflowStep, cwl_utils.parser.cwl_v1_2.ExpressionTool, cwl_utils.parser.cwl_v1_2.Workflow]) –
parent (Optional[cwl_utils.parser.cwl_v1_2.Workflow]) –
- Return type:
Dict[str, Any]
- cwl_utils.cwl_v1_2_expression_refactor.example_input(some_type)
Produce a fake input for the given type.
- Parameters:
some_type (Any) –
- Return type:
Any
- cwl_utils.cwl_v1_2_expression_refactor.EMPTY_FILE: cwl_utils.types.CWLOutputType
- cwl_utils.cwl_v1_2_expression_refactor.TOPLEVEL_SF_EXPR_ERROR = "Input '{}'. Sorry, CWL Expressions as part of a secondaryFiles specification in a Workflow level..."
- cwl_utils.cwl_v1_2_expression_refactor.TOPLEVEL_FORMAT_EXPR_ERROR = "Input '{}'. Sorry, CWL Expressions as part of a format specification in a Workflow level input..."
- cwl_utils.cwl_v1_2_expression_refactor.PICKVALUE_FIRST_NON_NULL_EXPR = Multiline-String
Show Value
"""${ for (let i = 0; i < self.length; i++) { if (self[i] !== null){ return self[i]; } } throw 'pickValue=first_non_null, but no non-null value found: ' + self; } """
- cwl_utils.cwl_v1_2_expression_refactor.PICKVALUE_THE_ONLY_NON_NULL_EXPR = Multiline-String
Show Value
"""${ var found = null; self.forEach(function(item) { if (item !== null) { if (found !== null) { throw 'pickValue=the_only_non_null, but multiple non-null values found: ' + self; } else { found = item; } } }) if (found !== null) { return found; } throw 'pickValue=the_only_non_null, but no non-null value found: ' + self; } """
- cwl_utils.cwl_v1_2_expression_refactor.PICKVALUE_ALL_NON_NULL_EXPR = Multiline-String
Show Value
"""${ var results = []; self.forEach(function(item) { if (item !== null){ results.push(item); } }) return results; } """
- cwl_utils.cwl_v1_2_expression_refactor.PICKVALUE_ERROR = "pickValue '{}' is invalid. Should be one of 'first_non_null', 'the_only_non_null', 'all_non_null'"
- cwl_utils.cwl_v1_2_expression_refactor.process_workflow_inputs_and_outputs(workflow, replace_etool)
Do any needed conversions on the given Workflow’s inputs and outputs.
- Parameters:
workflow (cwl_utils.parser.cwl_v1_2.Workflow) –
replace_etool (bool) –
- Return type:
- cwl_utils.cwl_v1_2_expression_refactor.process_workflow_reqs_and_hints(workflow, replace_etool)
Convert any expressions in a workflow’s reqs and hints.
Each expression will be converted to an additional step. The converted requirement will be copied to all workflow steps that don’t have that requirement type. Those affected steps will gain an additional input from the relevant synthesized expression step.
- Parameters:
workflow (cwl_utils.parser.cwl_v1_2.Workflow) –
replace_etool (bool) –
- Return type:
- cwl_utils.cwl_v1_2_expression_refactor.process_level_reqs(process, step, parent, replace_etool, skip_command_line1, skip_command_line2)
Convert expressions inside a process into new adjacent steps.
- Parameters:
process (cwl_utils.parser.cwl_v1_2.CommandLineTool) –
parent (cwl_utils.parser.cwl_v1_2.Workflow) –
replace_etool (bool) –
skip_command_line1 (bool) –
skip_command_line2 (bool) –
- Return type:
- cwl_utils.cwl_v1_2_expression_refactor.add_input_to_process(process, name, inptype, loadingOptions)
Add a new InputParameter to the given CommandLineTool.
- Parameters:
process (cwl_utils.parser.cwl_v1_2.Process) –
name (str) –
inptype (Any) –
loadingOptions (cwl_utils.parser.cwl_v1_2.LoadingOptions) –
- Return type:
None
- cwl_utils.cwl_v1_2_expression_refactor.traverse_CommandLineTool(clt, parent, step, replace_etool, skip_command_line1, skip_command_line2)
Extract any CWL Expressions within the given CommandLineTool into sibling steps.
- Parameters:
parent (cwl_utils.parser.cwl_v1_2.Workflow) –
replace_etool (bool) –
skip_command_line1 (bool) –
skip_command_line2 (bool) –
- Return type:
- cwl_utils.cwl_v1_2_expression_refactor.rename_step_source(workflow, old, new)
Update step source names to the new name.
- Parameters:
workflow (cwl_utils.parser.cwl_v1_2.Workflow) –
old (str) –
new (str) –
- Return type:
None
- cwl_utils.cwl_v1_2_expression_refactor.remove_JSReq(process, skip_command_line1)
Since the InlineJavascriptRequirement is longer needed, remove it.
- Parameters:
process (Union[cwl_utils.parser.cwl_v1_2.CommandLineTool, cwl_utils.parser.cwl_v1_2.WorkflowStep, cwl_utils.parser.cwl_v1_2.Workflow]) –
skip_command_line1 (bool) –
- Return type:
None
- cwl_utils.cwl_v1_2_expression_refactor.replace_step_clt_expr_with_etool(expr, name, workflow, target, step, replace_etool, self_name=None)
Convert a step level CWL Expression to a sibling expression step.
- Parameters:
expr (str) –
name (str) –
workflow (cwl_utils.parser.cwl_v1_2.Workflow) –
replace_etool (bool) –
self_name (Optional[str]) –
- Return type:
None
- cwl_utils.cwl_v1_2_expression_refactor.replace_clt_hintreq_expr_with_etool(expr, name, workflow, target, step, replace_etool, self_name=None)
Factor out an expression inside a CommandLineTool req or hint into a sibling step.
- Parameters:
expr (str) –
name (str) –
workflow (cwl_utils.parser.cwl_v1_2.Workflow) –
replace_etool (bool) –
self_name (Optional[str]) –
- Return type:
Union[cwl_utils.parser.cwl_v1_2.CommandLineTool, cwl_utils.parser.cwl_v1_2.ExpressionTool]
- cwl_utils.cwl_v1_2_expression_refactor.cltool_inputs_to_etool_inputs(tool)
Copy CommandLineTool input objects into the equivalent ExpressionTool input objects.
- Parameters:
- Return type:
- cwl_utils.cwl_v1_2_expression_refactor.cltool_step_outputs_to_workflow_outputs(cltool_step, etool_step_id, etool_out_id)
Copy CommandLineTool outputs into the equivalent Workflow output parameters.
Connects the outputSources for each of the new output parameters to the step they came from.
- Parameters:
cltool_step (cwl_utils.parser.cwl_v1_2.WorkflowStep) –
etool_step_id (str) –
etool_out_id (str) –
- Return type:
- cwl_utils.cwl_v1_2_expression_refactor.generate_etool_from_expr2(expr, target, inputs, self_name=None, process=None, extra_processes=None)
Generate an ExpressionTool to achieve the same result as the given expression.
- Parameters:
expr (str) –
target (Union[cwl_utils.parser.cwl_v1_2.CommandInputParameter, cwl_utils.parser.cwl_v1_2.WorkflowInputParameter]) –
inputs (Sequence[Union[cwl_utils.parser.cwl_v1_2.WorkflowInputParameter, cwl_utils.parser.cwl_v1_2.CommandInputParameter]]) –
self_name (Optional[str]) –
process (Optional[Union[cwl_utils.parser.cwl_v1_2.CommandLineTool, cwl_utils.parser.cwl_v1_2.ExpressionTool]]) –
extra_processes (Optional[Sequence[Union[cwl_utils.parser.cwl_v1_2.Workflow, cwl_utils.parser.cwl_v1_2.WorkflowStep, cwl_utils.parser.cwl_v1_2.CommandLineTool]]]) –
- Return type:
- cwl_utils.cwl_v1_2_expression_refactor.traverse_step(step, parent, replace_etool, skip_command_line1, skip_command_line2)
Process the given WorkflowStep.
- Parameters:
parent (cwl_utils.parser.cwl_v1_2.Workflow) –
replace_etool (bool) –
skip_command_line1 (bool) –
skip_command_line2 (bool) –
- Return type:
- cwl_utils.cwl_v1_2_expression_refactor.workflow_step_to_WorkflowInputParameters(step_ins, parent, except_in_id)
Create WorkflowInputParameters to match the given WorkflowStep inputs.
- Parameters:
step_ins (List[cwl_utils.parser.cwl_v1_2.WorkflowStepInput]) –
parent (cwl_utils.parser.cwl_v1_2.Workflow) –
except_in_id (str) –
- Return type:
- cwl_utils.cwl_v1_2_expression_refactor.replace_step_valueFrom_expr_with_etool(expr, name, workflow, target, step, step_inp, original_process, original_step_ins, source, replace_etool, source_type=None)
Replace a WorkflowStep level ‘valueFrom’ expression with a sibling ExpressionTool step.
- Parameters:
expr (str) –
name (str) –
workflow (cwl_utils.parser.cwl_v1_2.Workflow) –
target (Union[cwl_utils.parser.cwl_v1_2.CommandInputParameter, cwl_utils.parser.cwl_v1_2.WorkflowInputParameter]) –
step_inp (cwl_utils.parser.cwl_v1_2.WorkflowStepInput) –
original_process (Union[cwl_utils.parser.cwl_v1_2.CommandLineTool, cwl_utils.parser.cwl_v1_2.ExpressionTool]) –
original_step_ins (List[cwl_utils.parser.cwl_v1_2.WorkflowStepInput]) –
replace_etool (bool) –
source_type (Optional[Union[cwl_utils.parser.cwl_v1_2.WorkflowInputParameter, List[cwl_utils.parser.cwl_v1_2.WorkflowInputParameter]]]) –
- Return type:
None
- cwl_utils.cwl_v1_2_expression_refactor.replace_step_when_expr_with_etool(expr, workflow, step, original_step_ins, replace_etool)
Replace a WorkflowStep level ‘when’ expression with a sibling ExpressionTool step.
- Parameters:
expr (str) –
workflow (cwl_utils.parser.cwl_v1_2.Workflow) –
original_step_ins (List[cwl_utils.parser.cwl_v1_2.WorkflowStepInput]) –
replace_etool (bool) –
- Return type:
None
- cwl_utils.cwl_v1_2_expression_refactor.traverse_workflow(workflow, replace_etool, skip_command_line1, skip_command_line2)
Traverse a workflow, processing each step.
- Parameters:
workflow (cwl_utils.parser.cwl_v1_2.Workflow) –
replace_etool (bool) –
skip_command_line1 (bool) –
skip_command_line2 (bool) –
- Return type:
cwl_utils.docker_extract
Module Contents
Functions
Argument parser. |
|
|
Extract the docker reqs and download them using Singularity or Docker. |
|
Yield an iterator of the docker reqs, normalizing the pull request. |
|
For the given process, extract the DockerRequirement(s). |
|
Yield the iterator for the docker reqs, including an workflow steps. |
|
Return the process for this step, loading it if necessary. |
|
Iterate over the steps of this workflow, yielding the docker reqs. |
|
Command line entry point. |
- cwl_utils.docker_extract.arg_parser()
Argument parser.
- Return type:
- cwl_utils.docker_extract.run(args)
Extract the docker reqs and download them using Singularity or Docker.
- Parameters:
args (argparse.Namespace) –
- Return type:
List[cwl_utils.parser.DockerRequirement]
- cwl_utils.docker_extract.extract_docker_requirements(process)
Yield an iterator of the docker reqs, normalizing the pull request.
- Parameters:
process (cwl_utils.parser.Process) –
- Return type:
Iterator[cwl_utils.parser.DockerRequirement]
- cwl_utils.docker_extract.extract_docker_reqs(process)
For the given process, extract the DockerRequirement(s).
- Parameters:
process (cwl_utils.parser.Process) –
- Return type:
Iterator[cwl_utils.parser.DockerRequirement]
- cwl_utils.docker_extract.traverse(process)
Yield the iterator for the docker reqs, including an workflow steps.
- Parameters:
process (cwl_utils.parser.Process) –
- Return type:
Iterator[cwl_utils.parser.DockerRequirement]
- cwl_utils.docker_extract.get_process_from_step(step)
Return the process for this step, loading it if necessary.
- Parameters:
step (cwl_utils.parser.WorkflowStep) –
- Return type:
cwl_utils.parser.Process
- cwl_utils.docker_extract.traverse_workflow(workflow)
Iterate over the steps of this workflow, yielding the docker reqs.
- Parameters:
workflow (cwl_utils.parser.Workflow) –
- Return type:
Iterator[cwl_utils.parser.DockerRequirement]
cwl_utils.errors
Common Exceptions.
Module Contents
- exception cwl_utils.errors.ArrayMissingItems
Bases:
BaseException
From https://github.com/rabix/sbpack/blob/b8404a0859ffcbe1edae6d8f934e51847b003320/sbpack/lib.py .
- exception cwl_utils.errors.JavascriptException
Bases:
Exception
Common base class for all non-exit exceptions.
- exception cwl_utils.errors.MissingKeyField
Bases:
BaseException
From https://github.com/rabix/sbpack/blob/b8404a0859ffcbe1edae6d8f934e51847b003320/sbpack/lib.py .
- exception cwl_utils.errors.MissingTypeName
Bases:
BaseException
From https://github.com/rabix/sbpack/blob/b8404a0859ffcbe1edae6d8f934e51847b003320/sbpack/lib.py .
- exception cwl_utils.errors.RecordMissingFields
Bases:
BaseException
From https://github.com/rabix/sbpack/blob/b8404a0859ffcbe1edae6d8f934e51847b003320/sbpack/lib.py .
- exception cwl_utils.errors.SubstitutionError
Bases:
Exception
Common base class for all non-exit exceptions.
- exception cwl_utils.errors.WorkflowException
Bases:
Exception
Common base class for all non-exit exceptions.
- exception cwl_utils.errors.GraphTargetMissingException
Bases:
WorkflowException
When a $graph is encountered and there is no target and no main/#main.
cwl_utils.expression
CWL Expression parsing.
Module Contents
Functions
|
|
|
|
|
Interpolate and evaluate. |
|
|
|
|
|
Evaluate the given CWL expression, in context. |
- cwl_utils.expression.evaluator(js_engine, ex, obj, jslib, fullJS, **kwargs)
- Parameters:
js_engine (cwl_utils.sandboxjs.JSEngine) –
ex (str) –
obj (cwl_utils.types.CWLObjectType) –
jslib (str) –
fullJS (bool) –
kwargs (Any) –
- Return type:
Optional[cwl_utils.types.CWLOutputType]
- cwl_utils.expression.interpolate(scan, rootvars, jslib='', fullJS=False, strip_whitespace=True, escaping_behavior=2, convert_to_expression=False, js_engine=None, **kwargs)
Interpolate and evaluate.
Note: only call with convert_to_expression=True on CWL Expressions in $() form that need interpolation.
- Parameters:
- Return type:
Optional[cwl_utils.types.CWLOutputType]
- cwl_utils.expression.jshead(engine_config, rootvars)
- cwl_utils.expression.do_eval(ex, jobinput, requirements, outdir, tmpdir, resources, context=None, timeout=default_timeout, strip_whitespace=True, cwlVersion='', **kwargs)
Evaluate the given CWL expression, in context.
- Parameters:
timeout (float) – The maximum number of seconds to wait while executing.
ex (Optional[cwl_utils.types.CWLOutputType]) –
jobinput (cwl_utils.types.CWLObjectType) –
requirements (List[cwl_utils.types.CWLObjectType]) –
outdir (Optional[str]) –
tmpdir (Optional[str]) –
context (Optional[cwl_utils.types.CWLOutputType]) –
strip_whitespace (bool) –
cwlVersion (str) –
kwargs (Any) –
- Return type:
Optional[cwl_utils.types.CWLOutputType]
cwl_utils.expression_refactor
CWL Expression refactoring tool for CWL.
Module Contents
Classes
Shortcut type for CWL v1.x parse.save(). |
Functions
Build the argument parser. |
|
|
Parse the command line options. |
|
Console entry point. |
|
Collect the arguments and run. |
|
Primary processing loop. |
Attributes
- cwl_utils.expression_refactor.Protocol
- cwl_utils.expression_refactor.defaultStreamHandler
- cwl_utils.expression_refactor.save_type
- class cwl_utils.expression_refactor.saveCWL
Bases:
typing_extensions.Protocol
Shortcut type for CWL v1.x parse.save().
- cwl_utils.expression_refactor.arg_parser()
Build the argument parser.
- Return type:
- cwl_utils.expression_refactor.parse_args(args)
Parse the command line options.
- Parameters:
args (List[str]) –
- Return type:
- cwl_utils.expression_refactor.main()
Console entry point.
- Return type:
None
- cwl_utils.expression_refactor.run(args)
Collect the arguments and run.
- cwl_utils.expression_refactor.refactor(args)
Primary processing loop.
- Parameters:
args (argparse.Namespace) –
- Return type:
cwl_utils.file_formats
CWL file formats utilities.
For more information, please visit https://www.commonwl.org/user_guide/16-file-formats/
Module Contents
Functions
|
Determine if fmt is a subclass of cls. |
|
Confirm that the format present is valid for the allowed formats. |
- cwl_utils.file_formats.formatSubclassOf(fmt, cls, ontology, visited)
Determine if fmt is a subclass of cls.
- Parameters:
fmt (str) –
cls (str) –
ontology (Optional[rdflib.Graph]) –
visited (Set[str]) –
- Return type:
- cwl_utils.file_formats.check_format(actual_file, input_formats, ontology)
Confirm that the format present is valid for the allowed formats.
- Parameters:
actual_file (Union[cwl_utils.types.CWLObjectType, List[cwl_utils.types.CWLObjectType]]) –
ontology (Optional[rdflib.Graph]) –
- Return type:
None
cwl_utils.graph_split
Unpacks the result of cwltool –unpack.
Only tested with a single v1.0 workflow.
Module Contents
Functions
Build the argument parser. |
|
|
Console entry point. |
|
Split the packed CWL at the path of the first argument. |
|
Loop over the provided packed CWL document and split it up. |
|
Rewrite the given element from the CWL $graph. |
|
Adjust the $import directive. |
|
Clean up the names of the types. |
|
Dump the schemadefs to their own file. |
|
Output object as JSON. |
|
Output object as YAML. |
- cwl_utils.graph_split.arg_parser()
Build the argument parser.
- Return type:
- cwl_utils.graph_split.main()
Console entry point.
- Return type:
None
- cwl_utils.graph_split.run(args)
Split the packed CWL at the path of the first argument.
- cwl_utils.graph_split.graph_split(sourceIO, output_dir, output_format, mainfile, pretty)
Loop over the provided packed CWL document and split it up.
- cwl_utils.graph_split.rewrite(document, doc_id)
Rewrite the given element from the CWL $graph.
- cwl_utils.graph_split.rewrite_import(document)
Adjust the $import directive.
- Parameters:
document (MutableMapping[str, Any]) –
- Return type:
None
- cwl_utils.graph_split.rewrite_types(field, entry_file, sameself)
Clean up the names of the types.
- cwl_utils.graph_split.rewrite_schemadef(document)
Dump the schemadefs to their own file.
cwl_utils.image_puller
Classes for docker-extract.
Module Contents
Classes
Helper class that provides a standard way to create an ABC using |
|
Pull docker image with Docker. |
|
Pull docker image with Singularity. |
- class cwl_utils.image_puller.ImagePuller(req, save_directory, cmd, force_pull)
Bases:
abc.ABC
Helper class that provides a standard way to create an ABC using inheritance.
- Parameters:
req (str) –
save_directory (Optional[Union[str, pathlib.Path]]) –
cmd (str) –
force_pull (bool) –
- abstract save_docker_image()
Download and save the image to disk.
- Return type:
None
- class cwl_utils.image_puller.DockerImagePuller(req, save_directory, cmd, force_pull)
Bases:
ImagePuller
Pull docker image with Docker.
- Parameters:
req (str) –
save_directory (Optional[Union[str, pathlib.Path]]) –
cmd (str) –
force_pull (bool) –
- save_docker_image()
Download and save the software container image to disk as a docker tarball.
- Return type:
None
- class cwl_utils.image_puller.SingularityImagePuller(req, save_directory, cmd, force_pull)
Bases:
ImagePuller
Pull docker image with Singularity.
- Parameters:
req (str) –
save_directory (Optional[Union[str, pathlib.Path]]) –
cmd (str) –
force_pull (bool) –
- CHARS_TO_REPLACE = ['/']
- NEW_CHAR = '_'
- get_image_name()
Determine the file name appropriate to the installed version of Singularity.
- Return type:
- save_docker_image()
Pull down the Docker software container image and save it in the Singularity image format.
- Return type:
None
cwl_utils.loghandler
Shared logging object.
Module Contents
- cwl_utils.loghandler.defaultStreamHandler
cwl_utils.normalizer
Normalize CWL documents to CWL v1.2, JSON style.
Module Contents
Functions
Build the argument parser. |
|
|
Parse the command line arguments. |
|
Console entry point. |
|
Primary processing loop. |
Attributes
- cwl_utils.normalizer.defaultStreamHandler
- cwl_utils.normalizer.arg_parser()
Build the argument parser.
- Return type:
- cwl_utils.normalizer.parse_args(args)
Parse the command line arguments.
- Parameters:
args (List[str]) –
- Return type:
- cwl_utils.normalizer.main()
Console entry point.
- Return type:
None
- cwl_utils.normalizer.run(args)
Primary processing loop.
- Parameters:
args (argparse.Namespace) –
- Return type:
cwl_utils.pack
CWL document packing functions.
The link resolution is as follows:
We always have two components: the base and the link If the link is a url or absolute path it is what is used to fetch the data. If the link is a relative path it is combined with the base and that is what is used to fetch data
From https://github.com/rabix/sbpack/blob/b8404a0859ffcbe1edae6d8f934e51847b003320/sbpack/lib.py
Module Contents
Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Attributes
- cwl_utils.pack.logger
- cwl_utils.pack.get_inner_dict(cwl, path)
- cwl_utils.pack.pack_process(cwl, base_url, cwl_version, parent_user_defined_types=None)
- Parameters:
cwl (Dict[str, Any]) –
base_url (urllib.parse.ParseResult) –
cwl_version (str) –
parent_user_defined_types (Optional[Dict[str, Any]]) –
- Return type:
Dict[str, Any]
- cwl_utils.pack.listify_everything(cwl)
- cwl_utils.pack.dictify_requirements(cwl)
- cwl_utils.pack.normalize_sources(cwl)
- cwl_utils.pack.load_schemadefs(cwl, base_url, parent_user_defined_types=None)
- Parameters:
cwl (Dict[str, Any]) –
base_url (urllib.parse.ParseResult) –
parent_user_defined_types (Optional[Dict[str, Any]]) –
- Return type:
- cwl_utils.pack.resolve_schemadefs(cwl, base_url, user_defined_types)
- Parameters:
cwl (Dict[str, Any]) –
base_url (urllib.parse.ParseResult) –
user_defined_types (Dict[str, Any]) –
- Return type:
Dict[str, Any]
- cwl_utils.pack.resolve_imports(cwl, base_url)
- Parameters:
cwl (Any) –
base_url (urllib.parse.ParseResult) –
- Return type:
Any
- cwl_utils.pack.resolve_steps(cwl, base_url, cwl_version, parent_user_defined_types=None)
- Parameters:
cwl (Dict[str, Any]) –
base_url (urllib.parse.ParseResult) –
cwl_version (str) –
parent_user_defined_types (Optional[Dict[str, Any]]) –
- Return type:
Dict[str, Any]
- cwl_utils.pack.add_missing_requirements(cwl)
cwl_utils.sandboxjs
Safe execution of CWL Expressions in a NodeJS sandbox.
Module Contents
Classes
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
Attributes
Default number of seconds to wait while running a javascript engine. |
|
- cwl_utils.sandboxjs.default_timeout = 20
Default number of seconds to wait while running a javascript engine.
- cwl_utils.sandboxjs.seg_symbol = '\\w+'
- cwl_utils.sandboxjs.seg_single = "\\['([^']|\\\\')+'\\]"
- cwl_utils.sandboxjs.seg_double = '\\["([^"]|\\\\")+"\\]'
- cwl_utils.sandboxjs.seg_index = '\\[[0-9]+\\]'
- cwl_utils.sandboxjs.segments
- cwl_utils.sandboxjs.segment_re
- cwl_utils.sandboxjs.param_str
- cwl_utils.sandboxjs.param_re
- cwl_utils.sandboxjs.code_fragment_to_js(jscript, jslib='')
- class cwl_utils.sandboxjs.JSEngine
Bases:
abc.ABC
Helper class that provides a standard way to create an ABC using inheritance.
- abstract eval(scan, jslib='', **kwargs)
- class cwl_utils.sandboxjs.NodeJSEngine(have_node_slim=False, minimum_node_version_str='0.10.26', process_finished_str='r1cepzbhUTxtykz5XTC4\n')
Bases:
JSEngine
Helper class that provides a standard way to create an ABC using inheritance.
- localdata
- __del__()
- Return type:
None
- check_js_threshold_version(working_alias)
Check if the nodeJS engine version on the system with the allowed minimum version.
https://github.com/nodejs/node/blob/master/CHANGELOG.md#nodejs-changelog
- exec_js_process(js_text, timeout=default_timeout, js_console=False, context=None, force_docker_pull=False, container_engine='docker')
Run a javascript text.
- Parameters:
- Returns:
A tuple of the return code, stdout, and stderr of the javascript engine invocation.
- Return type:
- new_js_proc(js_text, force_docker_pull=False, container_engine='docker')
Return a subprocess ready to submit javascript to.
- Parameters:
- Return type:
- eval(scan, jslib='', timeout=default_timeout, force_docker_pull=False, debug=False, js_console=False, container_engine='docker', **kwargs)
- cwl_utils.sandboxjs.check_js_threshold_version(*args, **kwargs)
- Parameters:
args (Any) –
kwargs (Any) –
- Return type:
- cwl_utils.sandboxjs.exec_js_process(*args, **kwargs)
- cwl_utils.sandboxjs.new_js_proc(*args, **kwargs)
- Parameters:
args (Any) –
kwargs (Any) –
- Return type:
cwl_utils.schemadef
Valid forms of user defined types stored in external file.
A single dictionary (tests/types/singletype.yml) A list of dictionaries (e.g. tests/types/recursive.yml) Types can refer to other types in the file Names can not clash across files (This seems arbitrary and we allow that for packing) Only records and arrays can be defined (https://github.com/common-workflow-language/cwl-v1.2/pull/14)
From https://github.com/rabix/sbpack/blob/b8404a0859ffcbe1edae6d8f934e51847b003320/sbpack/lib.py
Module Contents
Functions
|
|
|
- cwl_utils.schemadef.build_user_defined_type_dict(cwl, base_url)
- Parameters:
cwl (Dict[str, Any]) –
base_url (urllib.parse.ParseResult) –
- Return type:
Dict[str, Any]
cwl_utils.singularity
Support Singularity{,-CE} {2,3}.x or Apptainer 1.x.
Module Contents
Functions
Parse the output of 'singularity --version' to determine the flavor and version. |
|
Check if apptainer singularity distribution is version 1.0 or higher. |
|
Check if this singularity version is exactly version 2.6. |
|
Check if this version is singularity version 3 or newer or equivalent. |
|
Check if this version is singularity version 3.1 or newer or equivalent. |
|
Detect if Singularity v3.4+ is available. |
- cwl_utils.singularity.get_version()
Parse the output of ‘singularity –version’ to determine the flavor and version.
Both pieces of information will be cached.
- cwl_utils.singularity.is_apptainer_1_or_newer()
Check if apptainer singularity distribution is version 1.0 or higher.
Apptainer v1.0.0 is compatible with SingularityCE 3.9.5. See: https://github.com/apptainer/apptainer/releases
- Return type:
- cwl_utils.singularity.is_version_2_6()
Check if this singularity version is exactly version 2.6.
Also returns False if the flavor is not singularity or singularity-ce.
- Return type:
- cwl_utils.singularity.is_version_3_or_newer()
Check if this version is singularity version 3 or newer or equivalent.
- Return type:
- cwl_utils.singularity.is_version_3_1_or_newer()
Check if this version is singularity version 3.1 or newer or equivalent.
- Return type:
cwl_utils.types
Shared Python type definitions for commons JSON like CWL objects.
Module Contents
- cwl_utils.types.built_in_types = ['null', 'boolean', 'int', 'long', 'float', 'double', 'string', 'File', 'Directory', 'stdin',...
- cwl_utils.types.CWLOutputAtomType
- cwl_utils.types.CWLOutputType
- cwl_utils.types.CWLObjectType
- cwl_utils.types.SinkType
cwl_utils.utils
Miscellaneous utility functions.
Module Contents
Functions
|
Convert any present byte string to unicode string, inplace. |
|
From https://github.com/rabix/sbpack/blob/b8404a0859ffcbe1edae6d8f934e51847b003320/sbpack/lib.py . |
|
From https://github.com/rabix/sbpack/blob/b8404a0859ffcbe1edae6d8f934e51847b003320/sbpack/lib.py . |
|
From https://github.com/rabix/sbpack/blob/b8404a0859ffcbe1edae6d8f934e51847b003320/sbpack/lib.py . |
|
Derive a resolved path. |
Confirm if the version of Singularity install supports the --userns flag. |
|
|
Shortcut. |
Attributes
- cwl_utils.utils.fast_yaml
- cwl_utils.utils.bytes2str_in_dicts(inp)
Convert any present byte string to unicode string, inplace.
input is a dict of nested dicts and lists
- cwl_utils.utils.load_linked_file(base_url, link, is_import=False)
From https://github.com/rabix/sbpack/blob/b8404a0859ffcbe1edae6d8f934e51847b003320/sbpack/lib.py .
- Parameters:
base_url (urllib.parse.ParseResult) –
link (str) –
is_import (bool) –
- Return type:
Tuple[Any, urllib.parse.ParseResult]
- cwl_utils.utils.normalize_to_map(obj, key_field)
From https://github.com/rabix/sbpack/blob/b8404a0859ffcbe1edae6d8f934e51847b003320/sbpack/lib.py .
- cwl_utils.utils.normalize_to_list(obj, key_field, value_field)
From https://github.com/rabix/sbpack/blob/b8404a0859ffcbe1edae6d8f934e51847b003320/sbpack/lib.py .
- cwl_utils.utils.resolved_path(base_url, link)
Derive a resolved path.
This function will 1. Resolve the path, which means dot and double dot components are resolved 2. Use the OS appropriate path resolution for local paths, and network appropriate resolution for network paths
From https://github.com/rabix/sbpack/blob/b8404a0859ffcbe1edae6d8f934e51847b003320/sbpack/lib.py
- Parameters:
base_url (urllib.parse.ParseResult) – “this document”
link (str) – “string in this document”
- Returns:
new URL that allows us to retrieve the linked document
- Return type:
- cwl_utils.utils.singularity_supports_userns()
Confirm if the version of Singularity install supports the –userns flag.
- Return type:
Included Utility Programs
cwl-cite-extract
Print information about software used in a CWL document (Workflow or CommandLineTool). For CWL Workflows, all steps will also be searched (recursively).
usage: cwl-cite-extract [-h] input
- input
Input CWL document (CWL Workflow or CWL CommandLineTool)
- -h, --help
show this help message and exit
cwl-docker-extract
Save container images specified in a CWL document (Workflow or CommandLineTool). For CWL Workflows, all steps will also be searched (recursively).
usage: cwl-docker-extract [-h] [--dir DIR] [-s]
[--container-engine CONTAINER_ENGINE]
[--force-download]
input
- input
Input CWL document (CWL Workflow or CWL CommandLineTool)
- -h, --help
show this help message and exit
- --dir <dir>
Directory in which to save images
- -s, --singularity
Use singularity to pull the image
- --container-engine <container_engine>
Specify which command to use to run OCI containers. Defaults to ‘docker’ (or ‘singularity’ if –singularity/-s is passed).
- --force-download
Force pulling a newer container.
cwl-expression-refactor
Tool to refactor CWL documents so that any CWL expression are separate steps as either ExpressionTools or CommandLineTools. Exit code 7 means a single CWL document was provided but it did not need modification.
usage: cwl-expression-refactor [-h] [--etools] [--skip-some1] [--skip-some2]
dir inputs [inputs ...]
- dir
Directory in which to save converted files
- inputs
One or more CWL documents.
- -h, --help
show this help message and exit
- --etools
Output ExpressionTools, don’t go all the way to CommandLineTools.
- --skip-some1
Don’t process CommandLineTool.inputs.inputBinding and CommandLineTool.arguments sections.
- --skip-some2
Don’t process CommandLineTool.outputEval or CommandLineTool.requirements.InitialWorkDirRequirement.
cwl-graph-split
Split a packed CWL document.
usage: cwl-graph-split [-h] [-m MAINFILE] [-f {json,yaml}] [-p] [-C OUTDIR]
cwlfile
- cwlfile
- -h, --help
show this help message and exit
- -m <mainfile>, --mainfile <mainfile>
Specify the name of the main document.
- -f {json,yaml}, --output-format {json,yaml}
Specify the format of the output CWL files.
- -p, --pretty
Beautify the output CWL document, only works with yaml format.
- -C <outdir>, --outdir <outdir>
Output folder for the unpacked CWL files.
cwl-normalizer
Normalizes CWL documents. Will upgrade to CWL v1.2, and pack the result. Can optionally refactor out CWL expressions.
usage: cwl-normalizer [-h] [--etools] [--skip-some1] [--skip-some2]
[--no-expression-refactoring]
dir inputs [inputs ...]
- dir
Directory in which to save converted files
- inputs
One or more CWL documents.
- -h, --help
show this help message and exit
- --etools
Output ExpressionTools, don’t go all the way to CommandLineTools.
- --skip-some1
Don’t process CommandLineTool.inputs.inputBinding and CommandLineTool.arguments sections.
- --skip-some2
Don’t process CommandLineTool.outputEval or CommandLineTool.requirements.InitialWorkDirRequirement.
- --no-expression-refactoring
Don’t do any CWL expression refactoring.