CWL
Platform Core supports running pipelines defined using Common Workflow Language (CWL).
Compute Type
To specify a compute type for a CWL CommandLineTool, either define the ram and number of cores or use the resource type and size. The Platform Core compute type will automatically be determined based on CWL ResourceRequirement coresMin/coresMax (CPU) and ramMin/ramMax (Memory) values using a "best fit" strategy to meet the minimum specified requirements (See the Compute Types table to see to what the resources are mapped).
For example, take the following ResourceRequirements:
requirements:
ResourceRequirement:
ramMin: 10240
coresMin: 6This will result in a best fit of standard-large Platform Core compute type request for the task.
See the example below to use the ResourceRequirement in the cwl workflow with the Predefined Compute Types
requirements:
ResourceRequirement:
https://platform.illumina.com/rdf/ica/resources:type: fpga2
https://platform.illumina.com/rdf/ica/resources:size: medium
https://platform.illumina.com/rdf/ica/resources:tier: standardStandard vs Economy
For each compute type, you can choose between the
Standard - AWS on-demand (Default) or
Economy - AWS spot instance tiers.
You can set economy mode with the "tier" parameter
Considerations
CWL Overrides
Platform Core supports overriding workflow requirements at load time using Command Line Interface (CLI) with JSON input. Please refer to CWL documentation for more details on the CWL overrides feature.
In Platform Core you can provide the "override" recipes as a part of the input JSON. The following example uses CWL overrides to change the environment variable requirement at load time.
Last updated
Was this helpful?

