File: clt1.cwl

package info (click to toggle)
cwl-utils 0.40-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,164 kB
  • sloc: python: 88,875; makefile: 141; javascript: 91
file content (45 lines) | stat: -rw-r--r-- 970 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env cwl-runner

class: CommandLineTool
cwlVersion: v1.0

requirements:
  InitialWorkDirRequirement:
    listing:
    - entryname: inputs.txt
      entry: |
        $(inputs.in1.file.path)
        $(inputs.in1.meta.species)
  SchemaDefRequirement:
    types:
    - $import: ../types/recursive.yml
    - $import: ../types/array.yml
    - $import: ../types/singletype.yml
    # - $import: ../types/singletype2.yml

inputs:
  in1: ../types/recursive.yml#file_with_sample_meta
  in2:
    type: ../types/array.yml#study_meta_too
  in3:
    type: ../types/singletype.yml#simple_record
#   in4:
#     type: ../types/singletype2.yml#simple_record2
  in4:
    type: [string, ../types/recursive.yml#sample_meta]
  in5:
    type: Any?

outputs:
  out1:
    type: File
    outputBinding:
      glob: '*.txt'
  out2:
    type: ../types/array.yml#study_meta_too
    outputBinding:
      outputEval: $(inputs.in2)
  out3: stdout

baseCommand: [echo]
arguments: [hello world]