Skip to content

commandLineTool redundant description can break workflow  #142

Closed

Description

@portah

How to reproduce
Workable standalone commandLineTool, pay attention to id: "#split",type null and default: false:

class: CommandLineTool
inputs:
  - id: "#input"
    type: File
    inputBinding:
      position: 1

  - id: "#split"
    type: ["null",boolean]
    default: false
    inputBinding:
      position: 4
      prefix: "-split"

When it is part of the workflow and inputs has '- {id: "#genomecov.split", default: true }':

steps:
  - id: "#genomecov"
    run: {import: ../../tools/bedtools-genomecov.cwl}
    inputs:
      - {id: "#genomecov.input", source: "#input"}
      - {id: "#genomecov.genomeFile", source: "#genomeFile"}
      - {id: "#genomecov.genomecoverageout", default: "genomecov.bed" }
      - {id: "#genomecov.dept", default: '-bg' }
      - {id: "#genomecov.split", default: true }
      - {id: "#genomecov.scale", source: "#scale" }
    outputs:
      - {id: "#genomecov.genomecoverage"}

Then running command does not have -split parameter, but if I remove default: false in '#split' everything fine.

  - id: "#split"
    type: ["null",boolean]
    inputBinding:
      position: 4
      prefix: "-split"

Activity

  1. portah commented on Nov 27, 2015

    @portah
    MemberAuthor

    In some situations when I have javascript code that checks some inputs value:

    outputs:
      - id: "#indices"
        type: ["null",File]
        outputBinding:
          glob: |
            ${
              if (inputs.runMode != "genomeGenerate")
                return [];
              return inputs.genomeDir+"/Genome";
            }

    The parameter runMode is optional it is not required in a job file. Without default value inputs.runMode is null so I can check if it's null or not but it will be less readable.

    For some tools they have regex in those params so it's good to have them in the CWL.

  2. changed the title [-]commandLineTool redundant description can brake workflow [/-] [+]commandLineTool redundant description can break workflow [/+] on Feb 16, 2016
  3. added a commit that references this issue on Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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