Skip to content

Commit

Permalink
🧠 fix memory settings
Browse files Browse the repository at this point in the history
  • Loading branch information
dmiller15 committed Sep 25, 2024
1 parent 417a4a1 commit d5bb923
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions subworkflows/deepsomatic.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,10 @@ steps:
return MAKE_EXAMPLE_EA_MAP[self[1]];
}
}
ram:
source: model_type
valueFrom: |
$(self.search("PACBIO") != -1 ? 3 : null)
out: [examples, candidates, gvcf]
deepsomatic_call_variants:
hints:
Expand Down
4 changes: 2 additions & 2 deletions tools/deepsomatic_call_variants.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ requirements:
- class: InlineJavascriptRequirement
- class: ShellCommandRequirement
- class: ResourceRequirement
ramMin: $(inputs.max_memory*1000)
ramMin: $(inputs.ram*1000)
coresMin: $(inputs.cpu)
- class: DockerRequirement
dockerPull: 'google/deepsomatic:1.7.0-gpu'
Expand Down Expand Up @@ -34,7 +34,7 @@ inputs:
doc: "Number of CPUs to allocate to this task."
ram:
type: 'int?'
default: 40
default: 32
doc: "Maximum GB of RAM to allocate for this tool."
outputs:
output:
Expand Down
4 changes: 2 additions & 2 deletions tools/deepsomatic_make_examples.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ requirements:
- class: InlineJavascriptRequirement
- class: ShellCommandRequirement
- class: ResourceRequirement
ramMin: $(inputs.max_memory*1000)
ramMin: $(inputs.ram*1000)
coresMin: $(inputs.cpu)
- class: DockerRequirement
dockerPull: 'google/deepsomatic:1.7.0'
Expand Down Expand Up @@ -79,7 +79,7 @@ inputs:
doc: "Number of CPUs to allocate to this task."
ram:
type: 'int?'
default: 1
default: 2
doc: "Maximum GB of RAM to allocate for this tool."
outputs:
examples:
Expand Down
2 changes: 1 addition & 1 deletion tools/deepsomatic_postprocess_variants.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ requirements:
- class: InlineJavascriptRequirement
- class: ShellCommandRequirement
- class: ResourceRequirement
ramMin: $(inputs.max_memory*1000)
ramMin: $(inputs.ram*1000)
coresMin: $(inputs.cpu)
- class: DockerRequirement
dockerPull: 'google/deepsomatic:1.7.0-gpu'
Expand Down
2 changes: 1 addition & 1 deletion tools/deepsomatic_vcf_stats_report.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ requirements:
- class: InlineJavascriptRequirement
- class: ShellCommandRequirement
- class: ResourceRequirement
ramMin: $(inputs.max_memory*1000)
ramMin: $(inputs.ram*1000)
coresMin: $(inputs.cpu)
- class: DockerRequirement
dockerPull: 'google/deepsomatic:1.7.0'
Expand Down

0 comments on commit d5bb923

Please sign in to comment.