Configuring resources (CPU / Memory)¶
Sometimes you’ll want to override the amount of resources a tool will get.
There are changes to the tool docs coming to encapsulate this information.
Some tools are aware of hints, and can change their resources based on the hints you provide. For example, BWA MEM responds to the
captureType hint (
Generating resources template¶
Sometimes you want complete custom control over which resources each of your tool, you can generate an inputs template for resources with the following:
$ janis inputs --resources BWAAligner # bwamem_runtime_cpu: 16 # bwamem_runtime_disks: local-disk 60 SSD # bwamem_runtime_memory: 16 # cutadapt_runtime_cpu: 5 # cutadapt_runtime_disks: local-disk 60 SSD # cutadapt_runtime_memory: 4 # fastq: null # reference: null # sample_name: null # sortsam_runtime_cpu: 1 # sortsam_runtime_disks: local-disk 60 SSD # sortsam_runtime_memory: 8
- You are unable to size a specific shard within a scatter. (See Expressions in runtime attributes)
- The only way to set the
disksize for a tool is to generate the inputs template, and set a value.
- Currently (2020-03-20) you are unable to change the time limit of tasks
Leave an issue on GitHub (or comment on the linked issue) if you have comments.
Providing hints to get appropriately sized resources
janis inputs [PROPOSED: --hint-captureType 30x] --resource WGSGermlineGATK
- Expressions in runtime attributes.