Skip to content

Translation for array of array of file #67

Description

@junyk

For some Bioinformatics tool, we may want to pass more than one pair of FASTQ files.
In Janis, it is declared like this:

ToolInput(
    "readFilesIn",
    Array(FastqGzPair(optional=True)),
    prefix="--readFilesIn"
)

In wdl, this input was translated into:

 Array[Array[File]] reads

The command argument looked like this:

 ~{if length(reads) > 0 then sep(" ", reads) else ""}

When running this, cromwell threw the following errors:

Cannot invoke 'sep' on type 'Array[Array[_]]'. Expected an Array[String]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions