We are trying to use the ExomeGermlineSingleSample WARP pipeline,which accepts a JSON array of strings for the input field ExomeGermlineSingleSample.sample_and_unmapped_bams.flowcell_unmapped_bams
Usually samples have multiple uBAM files but for some, there is a single uBAM. We specify the input to be this.participant, which should in theory expand to
Unfortunately Terra is converting this to a scalar, we get this error
Workflow input processing failed (Caused by [reason 1 of 1]: Failed to evaluate input 'sample_and_unmapped_bams' (reason 1 of 1): Error(s): No coercion defined from '"gs://.../BamToUnmappedBams/.../call-SortSam/shard-0/....bam.unmapped.bam"' of type 'spray.json.JsString' to 'Array[File]'.)
This anti-feature would seem like it's by intentional design. Our other runs in the same job which have multiple uBAMs per sample work as expected, only the run with one uBAM crashes. Is there a clean way to work around this?
Please sign in to leave a comment.