Skip to content

question: add arguments to workflow step inputs #19

Description

@matthdsm

Hi,
I'm trying to add an stepInput to a workflow step whose value is based on another input
e.g.

        self.input(
            "readGroupHeaderLine",
            String(),
            value=StringFormatter(
                "@RG\\tID:{name}\\tSM:{name}\\tLB:{name}\\tPL:{pl}",
                name=InputSelector("sampleName"),
                pl=InputSelector("platform"),
            ),
        )
        generateAlignedSam = self.step(
            "generateAlignedSam",
            biotools.bwa.BwaMem_0_7_15(
                reads=[self.unalignedReadsR1, self.unalignedReadsR2],
                reference=self.referenceFasta,
                readGroupHeaderLine=self.readGroupHeaderLine,
                threads=self.threads,
            ),
        )

This seems to work, but when translating to CWL, the readGroupHeaderLine input is still required. Is there a way to add an input to a step, so it doesn't show up in the workflow inputs?

Thanks
M

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions