Skip to content
This repository was archived by the owner on Aug 17, 2022. It is now read-only.

Commit 95f8274

Browse files
committed
working on param for memory
1 parent 9cb6712 commit 95f8274

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Dockstore.cwl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ hints:
2323
description: "the process requires at least 4G of RAM"
2424
2525
inputs:
26-
- id: "#bam_input"
27-
type: File
28-
description: "The BAM file used as input, it must be sorted."
26+
- id: "#mem_gb"
27+
type: int
28+
default: 4
29+
description: "The memory, in GB, for the reporting tool"
2930
inputBinding:
3031
position: 1
3132
3233
inputs:
33-
- id: "#mem_gb"
34+
- id: "#bam_input"
3435
type: File
35-
description: "The memory, in GB, for the reporting tool"
36+
description: "The BAM file used as input, it must be sorted."
3637
inputBinding:
37-
position: 1
38-
38+
position: 2
3939
4040
outputs:
4141
- id: "#bamstats_report"

bin/bamstats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22
set -euf -o pipefail
33

4-
java -Xmx$2g -jar /opt/BAMStats-1.25/BAMStats-1.25.jar -i $1 -o bamstats_report.html -v html
4+
java -Xmx$1g -jar /opt/BAMStats-1.25/BAMStats-1.25.jar -i $2 -o bamstats_report.html -v html
55
zip -r bamstats_report.zip bamstats_report.html bamstats_report.html.data

0 commit comments

Comments
 (0)