Question: Is there a way to repeat a prefix for an input that is an array of strings?
1
gravatar for ionox0
9 months ago by
ionox0280
ionox0280 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 • 335 views
ADD COMMENTlink modified 8 months ago by bogdan.gavrilovic190 • written 9 months ago by ionox0280
3
gravatar for bogdan.gavrilovic
8 months ago by
bogdan.gavrilovic190 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 8 months ago by bogdan.gavrilovic190
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: 2207 users visited in the last hour