Heads up:
We’re moving the GATK website, docs and forum to a new platform. Read the full story and breakdown of key changes on this blog.
Update: July 26, 2019
This section of the forum is now closed; we are working on a new support model for WDL that we will share here shortly. For Cromwell-specific issues, see the Cromwell docs and post questions 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


Sign In or Register to comment.