cwl_utils.parser.cwl_v1_1
Attributes
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 |
|
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 a process requires an MPI runtime. |
|
Require support for NVIDA CUDA (GPU hardware acceleration). |
|
A process requirement declares a prerequisite that may or must be fulfilled |
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. |
Module Contents
- 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])
fileuri (Optional[str])
copyfrom (Optional[LoadingOptions])
original_doc (Optional[Any])
baseuri (Optional[str])
idx (Optional[IdxType])
no_link_check (Optional[bool])
container (Optional[str])
- idx: IdxType
- namespaces: collections.abc.MutableMapping[str, str]
- schemas: collections.abc.MutableSequence[str]
- addl_metadata: collections.abc.MutableMapping[str, Any]
- fetcher: schema_salad.fetcher.Fetcher
- cache: schema_salad.utils.CacheType
- property graph: rdflib.Graph
Generate a merged rdflib.Graph from all entries in self.schemas.
- Return type:
- class cwl_utils.parser.cwl_v1_1.Saveable
Bases:
abc.ABC
Mark classes than have a save() and fromDoc() function.
- classmethod fromDoc(_doc, baseuri, loadingOptions, docRoot=None)
- Abstractmethod:
- Parameters:
_doc (Any)
baseuri (str)
loadingOptions (LoadingOptions)
docRoot (Optional[str])
- Return type:
Construct this object from the result of yaml.load().
- cwl_utils.parser.cwl_v1_1.load_field(val, fieldtype, baseuri, loadingOptions, lc=None)
Load field.
- 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.
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/salad#RecordField'
- doc = None
- name
- type_
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/salad#RecordSchema'
- fields = None
- type_
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/salad#EnumSchema'
- name = None
- symbols
- type_
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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)
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/salad#ArraySchema'
- items
- type_
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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)
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/salad#MapSchema'
- type_
- values
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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)
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/salad#UnionSchema'
- names
- type_
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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)
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#CWLArraySchema'
- items
- type_
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#CWLRecordField'
- doc = None
- name
- type_
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#CWLRecordSchema'
- fields = None
- type_
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#File'
- class_ = 'File'
- location = None
- path = None
- basename = None
- dirname = None
- nameroot = None
- nameext = None
- checksum = None
- size = None
- secondaryFiles = None
- format = None
- contents = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#Directory'
- class_ = 'Directory'
- location = None
- path = None
- basename = None
- listing = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#InputBinding'
- loadContents = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#InputRecordField'
- doc = None
- name
- type_
- label = None
- secondaryFiles = None
- streamable = None
- format = None
- loadContents = None
- loadListing = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#InputRecordSchema'
- fields = None
- type_
- label = None
- doc = None
- name = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#InputEnumSchema'
- name = None
- symbols
- type_
- label = None
- doc = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#InputArraySchema'
- items
- type_
- label = None
- doc = None
- name = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#OutputRecordField'
- doc = None
- name
- type_
- label = None
- secondaryFiles = None
- streamable = None
- format = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#OutputRecordSchema'
- fields = None
- type_
- label = None
- doc = None
- name = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#OutputEnumSchema'
- name = None
- symbols
- type_
- label = None
- doc = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#OutputArraySchema'
- items
- type_
- label = None
- doc = None
- name = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#InlineJavascriptRequirement'
- class_ = 'InlineJavascriptRequirement'
- expressionLib = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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)
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#SchemaDefRequirement'
- class_ = 'SchemaDefRequirement'
- types
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#SecondaryFileSchema'
- pattern
- required = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#LoadListingRequirement'
- class_ = 'LoadListingRequirement'
- loadListing = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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)
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#EnvironmentDef'
- envName
- envValue
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#CommandLineBinding'
- loadContents = None
- position = None
- prefix = None
- separate = None
- itemSeparator = None
- valueFrom = None
- shellQuote = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#CommandOutputBinding'
- loadContents = None
- loadListing = None
- glob = None
- outputEval = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#CommandLineBindable'
- inputBinding = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#CommandInputRecordField'
- doc = None
- name
- type_
- label = None
- secondaryFiles = None
- streamable = None
- format = None
- loadContents = None
- loadListing = None
- inputBinding = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#CommandInputRecordSchema'
- fields = None
- type_
- label = None
- doc = None
- name = None
- inputBinding = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#CommandInputEnumSchema'
- name = None
- symbols
- type_
- label = None
- doc = None
- inputBinding = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#CommandInputArraySchema'
- items
- type_
- label = None
- doc = None
- name = None
- inputBinding = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#CommandOutputRecordField'
- doc = None
- name
- type_
- label = None
- secondaryFiles = None
- streamable = None
- format = None
- outputBinding = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#CommandOutputRecordSchema'
- fields = None
- type_
- label = None
- doc = None
- name = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#CommandOutputEnumSchema'
- name = None
- symbols
- type_
- label = None
- doc = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#CommandOutputArraySchema'
- items
- type_
- label = None
- doc = None
- name = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#CommandInputParameter'
- label = None
- secondaryFiles = None
- streamable = None
- doc = None
- id = None
- format = None
- loadContents = None
- loadListing = None
- default = None
- type_
- inputBinding = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#CommandOutputParameter'
- label = None
- secondaryFiles = None
- streamable = None
- doc = None
- id = None
- format = None
- type_
- outputBinding = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#CommandLineTool'
- id = None
- label = None
- doc = None
- inputs
- outputs
- requirements = None
- hints = None
- cwlVersion = None
- class_ = 'CommandLineTool'
- baseCommand = None
- arguments = None
- stdin = None
- stderr = None
- stdout = None
- successCodes = None
- temporaryFailCodes = None
- permanentFailCodes = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#DockerRequirement'
- class_ = 'DockerRequirement'
- dockerPull = None
- dockerLoad = None
- dockerFile = None
- dockerImport = None
- dockerImageId = None
- dockerOutputDirectory = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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)
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#SoftwareRequirement'
- class_ = 'SoftwareRequirement'
- packages
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#SoftwarePackage'
- package
- version = None
- specs = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#Dirent'
- entryname = None
- entry
- writable = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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)
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#InitialWorkDirRequirement'
- class_ = 'InitialWorkDirRequirement'
- listing
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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)
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#EnvVarRequirement'
- class_ = 'EnvVarRequirement'
- envDef
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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:
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#ShellCommandRequirement'
- class_ = 'ShellCommandRequirement'
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#ResourceRequirement'
- class_ = 'ResourceRequirement'
- coresMin = None
- coresMax = None
- ramMin = None
- ramMax = None
- tmpdirMin = None
- tmpdirMax = None
- outdirMin = None
- outdirMax = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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)
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#WorkReuse'
- class_ = 'WorkReuse'
- enableReuse
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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)
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#NetworkAccess'
- class_ = 'NetworkAccess'
- networkAccess
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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)
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#InplaceUpdateRequirement'
- class_ = 'InplaceUpdateRequirement'
- inplaceUpdate
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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)
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#ToolTimeLimit'
- class_ = 'ToolTimeLimit'
- timelimit
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#ExpressionToolOutputParameter'
- label = None
- secondaryFiles = None
- streamable = None
- doc = None
- id = None
- format = None
- type_
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#WorkflowInputParameter'
- label = None
- secondaryFiles = None
- streamable = None
- doc = None
- id = None
- format = None
- loadContents = None
- loadListing = None
- default = None
- type_
- inputBinding = None
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#ExpressionTool'
- id = None
- label = None
- doc = None
- inputs
- outputs
- requirements = None
- hints = None
- cwlVersion = None
- class_ = 'ExpressionTool'
- expression
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#WorkflowOutputParameter'
- label = None
- secondaryFiles = None
- streamable = None
- doc = None
- id = None
- format = None
- outputSource = None
- linkMerge = None
- type_
- 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:
- save(top=False, base_url='', relative_uris=True)
Convert this object to a JSON/YAML friendly dictionary.
- attrs
- 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])
loadingOptions (Optional[LoadingOptions])
- class_uri = 'https://w3id.org/cwl/cwl#WorkflowStepInput'
- id = None
- source = None
- linkMerge = None
- loadContents = None
- loadListing = None
- label = None
- default = None
- valueFrom = None
- 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: