Question: Is there a way to repeat a prefix for an input that is an array of strings?
0
gravatar for ionox0
6 months ago by
ionox0140
ionox0140 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 • 278 views
ADD COMMENTlink modified 5 months ago by bogdan.gavrilovic150 • written 6 months ago by ionox0140
3
gravatar for bogdan.gavrilovic
5 months ago by
bogdan.gavrilovic150 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 5 months ago by bogdan.gavrilovic150
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: 734 users visited in the last hour