Is there a way to repeat a prefix for an input that is an array of strings?
1
1
Entering edit mode
6.1 years ago
ionox0 ▴ 390

With this input parameter:

fci__rf: [FailsVendorQualityCheck, BadMate, UnmappedRead, BadCigar]

I would like this:

read_filters:
  type: string[]
  inputBinding:
    prefix: --read_filter

To result in this:

java
-jar GenomeAnalysisTK.jar
-T
FindCoveredIntervals
--input_file
sample.bam
--reference_sequence ref.fasta
--read_filter FailsVendorQualityCheck
--read_filter BadMate
--read_filter UnmappedRead
--read_filter BadCigar

Do I need to use shellQuote? Or perhaps I need to use a string input instead of an array?

cwl • 1.2k views
ADD COMMENT
3
Entering edit mode
6.0 years ago

Please check out this page http://www.commonwl.org/user_guide/09-array-inputs/

In your case this definition will do the job:

inputs:
  read_filters:
    type:
      type: array
      items: string
      inputBinding:
        prefix: --read_filter
    inputBinding:
      position: 1
ADD COMMENT

Login before adding your answer.

Traffic: 2585 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6