X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0eb4abfca9127ad1a7a8153840f876e512c624cb..39c9193f03471aa7826769b34d6b55890a2c98a3:/doc/_includes/_run_command_foreach_example.liquid diff --git a/doc/_includes/_run_command_foreach_example.liquid b/doc/_includes/_run_command_foreach_example.liquid index dfa14c954d..3fb754f9db 100644 --- a/doc/_includes/_run_command_foreach_example.liquid +++ b/doc/_includes/_run_command_foreach_example.liquid @@ -1,25 +1,40 @@ -"bwa-mem": { - "script": "run-command", - "script_version": "master", - "repository": "arvados", - "script_parameters": { - "command": [ - "bwa", - "mem", - "-t", - "$(node.cores)", - "$(glob $(dir $(reference_collection))/*.fasta)", - "$(glob $(dir $(sample))/*_1.fastq)", - "$(glob $(dir $(sample))/*_2.fastq)" - ], - "task.stdout": "$(basename $(glob $(dir $(sample))/*_1.fastq)).sam" - "reference_collection": { - "required": true, - "dataclass": "Collection" - }, - "samples": { - "required": true, - "dataclass": "Collection" - }, +{ + "name":"run-command example pipeline", + "components":{ + "bwa-mem": { + "script": "run-command", + "script_version": "master", + "repository": "arvados", + "script_parameters": { + "command": [ + "bwa", + "mem", + "-t", + "$(node.cores)", + "$(glob $(dir $(reference_collection))/*.fasta)", + { + "foreach": "read_pair", + "command": "$(read_pair)" + } + ], + "task.stdout": "$(basename $(glob $(dir $(sample))/*_1.fastq)).sam", + "task.foreach": ["sample_subdir", "read_pair"], + "reference_collection": { + "required": true, + "dataclass": "Collection" + }, + "sample": { + "required": true, + "dataclass": "Collection" + }, + "sample_subdir": "$(dir $(samples))", + "read_pair": { + "value": { + "group": "sample_subdir", + "regex": "(.*)_[12]\\.fastq(\\.gz)?$" + } + } + } + } } }