Update: July 26, 2019
This section of the forum is no longer actively monitored. We are working on a support migration plan that we will share here shortly. Apologies for this inconvenience.

Determine the total size of an array of files.

bshifawbshifaw moonMember, 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.