task preprocess { File bamFile File bamIndex String sampleId File referenceBundle String docker Float memory Int numPreempt Int diskSize = round(size(bamFile, "G")) + 30 command { $SV_DIR/scripts/firecloud/preprocess.sh ${sampleId} ${bamFile} ${referenceBundle} } output { File mdPath = "metadata.zip" } runtime { docker: "${docker}" memory: "${memory}GB" disks: "local-disk ${diskSize} HDD" preemptible: "${numPreempt}" } } workflow gs_preprocessing_wf { call preprocess }