title: PipelineTemplate
...
-Pipelines consist of a set of "components". Each component is an Arvados job submission. "Parameters for job submissions are described on the job method page.":{{site.baseurl}}/api/methods/jobs.html#create
+The pipeline template consists of "name" and "components".
table(table table-bordered table-condensed).
|_. Attribute |_. Type |_. Accepted values |_. Required|_. Description|
|name |string |any |yes |The human-readable name of the pipeline template.|
|components |object |JSON object containing job submission objects|yes |The component jobs that make up the pipeline, with the component name as the key. |
+h3. Components
+
+The components field of the pipeline template is a JSON object which describes the individual steps that make up the pipeline. Each component is an Arvados job submission. "Parameters for job submissions are described on the job method page.":{{site.baseurl}}/api/methods/jobs.html#create In addition, a component can have the following parameters:
+
+table(table table-bordered table-condensed).
+|_. Attribute |_. Type |_. Accepted values |_. Required|_. Description|
+|output_name |string or boolean|string or false |no |If a string is provided, use this name for the output collection of this component. If the value is false, do not create a permanent output collection (an temporary intermediate collection will still be created). If not provided, a default name will be assigned to the output.|
+
h3. Script parameters
When used in a pipeline, each parameter in the 'script_parameters' attribute of a component job can specify that the input parameter must be supplied by the user, or the input parameter should be linked to the output of another component. To do this, the value of the parameter should be JSON object containing one of the following attributes:
],
"input":"d237a90bae3870b3b033aea1e99de4a9+10820+K@qr1hi"
},
- "output_is_persistent":false
+ "output_name":false
},
"bwa-index":{
"repository":"arvados",
"required":true
}
},
- "output_is_persistent":false
+ "output_name":false
},
"bwa-aln":{
"repository":"arvados",
"runtime_constraints":{
"max_tasks_per_node":1
},
- "output_is_persistent":false
+ "output_name":false
},
"picard-gatk2-prep":{
"repository":"arvados",
"runtime_constraints":{
"max_tasks_per_node":1
},
- "output_is_persistent":false
+ "output_name":false
},
"GATK2-realign":{
"repository":"arvados",
"runtime_constraints":{
"max_tasks_per_node":2
},
- "output_is_persistent":false
+ "output_name":false
},
"GATK2-bqsr":{
"repository":"arvados",
"required":true
}
},
- "output_is_persistent":false
+ "output_name":false
},
"GATK2-merge-call":{
"repository":"arvados",
]
}
},
- "output_is_persistent":true
+ "output_name":"Variant calls from UnifiedGenotyper"
}
}
}
* @"components"@ is a set of scripts or commands that make up the pipeline. Each component is given an identifier (@"bwa-mem"@ and @"SortSam"@) in this example).
** Each entry in components @"components"@ is an Arvados job submission. For more information about individual jobs, see the "job object reference":{{site.baseurl}}/api/schema/Job.html and "job create method.":{{site.baseurl}}/api/methods/jobs.html#create
* @"repository"@, @"script_version"@, and @"script"@ indicate that we intend to use the external @"run-command"@ tool wrapper that is part of the Arvados. These parameters are described in more detail in "Writing a script":tutorial-firstscript.html
-* @"output_is_persistent"@ indicates whether the output of the component is considered valuable. If this value is false (or not given), the output will be treated as intermediate data which may be eventually deleted to reclaim disk space.
* @"runtime_constraints"@ describes runtime resource requirements for the component.
** @"docker_image"@ specifies the "Docker":https://www.docker.com/ runtime environment in which to run the job. The Docker image @"arvados/jobs-java-bwa-samtools"@ supplied here has the Arvados SDK, Java runtime environment, bwa, and samtools installed.
* @"script_parameters"@ describes the component parameters.
},
"repository":"$USER",
"script_version":"master",
- "output_is_persistent":true,
"runtime_constraints":{
"docker_image":"arvados/jobs-java-bwa-samtools"
}