We've moved!
For WDL questions, see the WDL specification and WDL docs.
For Cromwell questions, see the Cromwell docs and please post any issues on Github.

Determine the total size of an array of files.

bshifawbshifaw Member, Broadie, Moderator admin

I'm getting the following error:

Workflow failed
Call input and runtime attributes evaluation failed for MergeVCFs
Failed to evaluate input 'disk_size' (reason 1 of 1): The 'size' method expects a 'File' or 'File?' argument but instead got Array[File].

Using the following task

task MergeVCFs {

  # Command parameters
  Array[File] input_vcfs
  Array[File] input_vcfs_indexes
  String output_vcf_name
  String? gatk_path_override

  # Runtime parameters
  String? docker_override
  Int? preemptible_tries
  Int? memory_gb_override
  Int? additional_diskspace

  Int disk_size = ceil(size(input_vcfs, "GB") * 2.5) + 10 + select_first([additional_diskspace, 0])
  Int machine_mem_gb = select_first([memory_gb_override, 7])
  Int command_mem_gb = machine_mem_gb - 1

  command {
    set -e

on Firecloud which uses cromwell v36. The draft-3 spec sheet mentions its able to calculate the size of arrays so what am i doing wrong?

Best Answer

Answers

Sign In or Register to comment.