Question: Is there a way to repeat a prefix for an input that is an array of strings?
0
gravatar for ionox0
3 months ago by
ionox0110
ionox0110 wrote:

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 • 214 views
ADD COMMENTlink modified 9 weeks ago by bogdan.gavrilovic110 • written 3 months ago by ionox0110
3
gravatar for bogdan.gavrilovic
9 weeks ago by
bogdan.gavrilovic110 wrote:

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 COMMENTlink written 9 weeks ago by bogdan.gavrilovic110
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 846 users visited in the last hour