Skip to content

Commit 5f038f9

Browse files
author
Peter Amstutz
committed
bwa-mem example uses ResourceRequest and $resources.cores.
1 parent d7f76f1 commit 5f038f9

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

draft-3/draft-3/bwa-mem-job.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

draft-3/draft-3/bwa-mem-job.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"reference": {
3+
"class": "File",
4+
"path": "rabix/tests/test-files/chr20.fa",
5+
"size": 123,
6+
"checksum": "sha1$hash"
7+
},
8+
"reads": [
9+
{
10+
"class": "File",
11+
"path": "rabix/tests/test-files/example_human_Illumina.pe_1.fastq"
12+
},
13+
{
14+
"class": "File",
15+
"path": "rabix/tests/test-files/example_human_Illumina.pe_2.fastq"
16+
}
17+
],
18+
"min_std_max_min": [
19+
1,
20+
2,
21+
3,
22+
4
23+
],
24+
"minimum_seed_length": 3
25+
}

draft-3/draft-3/bwa-mem-tool.cwl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ hints:
1111
dockerPull: images.sbgenomics.com/rabix/bwa
1212
dockerImageId: 9d3b9b0359cf
1313

14+
- class: ResourceRequirement
15+
coresMin: 4
16+
1417
inputs:
1518
- id: "#reference"
1619
type: File
@@ -43,7 +46,7 @@ baseCommand: ["bwa", "mem"]
4346
arguments:
4447
- valueFrom:
4548
engine: "node-engine.cwl"
46-
script: "$job.allocatedResources.cpu"
49+
script: "$resources.cores"
4750
position: 1
4851
prefix: "-t"
4952

0 commit comments

Comments
 (0)