File tree Expand file tree Collapse file tree 3 files changed +92
-0
lines changed Expand file tree Collapse file tree 3 files changed +92
-0
lines changed Original file line number Diff line number Diff line change 3490
3490
tool : tests/paramref_arguments_roundtrip.cwl
3491
3491
doc : Confirm that records with defaults are accepted
3492
3492
tags : [ required, command_line_tool ]
3493
+
3494
+ - label : record_outputeval
3495
+ output :
3496
+ references :
3497
+ genome_fa :
3498
+ class : File
3499
+ basename : GRCm38.primary_assembly.genome.fa
3500
+ checksum : sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709
3501
+ size : 0
3502
+ annotation_gtf :
3503
+ class : File
3504
+ basename : gencode.vM21.primary_assembly.annotation.gtf
3505
+ checksum : sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709
3506
+ size : 0
3507
+ tool : tests/record_outputeval.cwl
3508
+ doc : Use of outputEval on a record itself, not the fields of the record
3509
+ tags : [ inline_javascript, command_line_tool ]
3510
+
3511
+ - label : record_outputeval_nojs
3512
+ output :
3513
+ references :
3514
+ annotation_gtf : gencode.vM21.primary_assembly.annotation.gtf
3515
+ genome_fa : GRCm38.primary_assembly.genome.fa
3516
+ summary :
3517
+ class : File
3518
+ checksum : sha1$c0bf6c4db73d4fc08ee24c7288825c09f9cb3cea
3519
+ size : 79
3520
+ tool : tests/record_outputeval_nojs.cwl
3521
+ doc : Use of outputEval on a record itself, not the fields of the record (without javascript)
3522
+ tags : [ required, command_line_tool ]
Original file line number Diff line number Diff line change
1
+ cwlVersion: v1.2
2
+ class: CommandLineTool
3
+ requirements :
4
+ InlineJavascriptRequirement: {}
5
+
6
+ inputs :
7
+ gtf_version:
8
+ type : string
9
+ default : M21
10
+ organism:
11
+ type : string
12
+ default : mouse
13
+ organism_prefix:
14
+ type : string
15
+ default : m
16
+
17
+ baseCommand :
18
+ - bash
19
+ - -c
20
+ arguments :
21
+ - touch GRC$(inputs.organism_prefix)38.primary_assembly.genome.fa ; touch gencode.v$(inputs.gtf_version).primary_assembly.annotation.gtf
22
+ outputs :
23
+ - id : references
24
+ type :
25
+ name: References
26
+ fields :
27
+ - name: genome_fa
28
+ type : File
29
+ - name: annotation_gtf
30
+ type : File
31
+ type : record
32
+ outputBinding :
33
+ outputEval : '$({ "genome_fa": { "class": "File", "path": runtime. outdir+"/"+"GRC"
34
+ + inputs. organism_prefix + "38. primary_assembly. genome. fa" }, "annotation_gtf":
35
+ { "class": "File", "path": runtime. outdir+"/"+"gencode. v" + inputs. gtf_version
36
+ + ". primary_assembly. annotation. gtf" } })'
Original file line number Diff line number Diff line change
1
+ cwlVersion: v1.2
2
+ class: CommandLineTool
3
+ inputs :
4
+ ref:
5
+ type :
6
+ type : record
7
+ fields :
8
+ genome_fa: string
9
+ annotation_gtf: string
10
+ default : { genome_fa: GRCm38.primary_assembly.genome.fa,
11
+ annotation_gtf: gencode.vM21.primary_assembly.annotation.gtf }
12
+
13
+ baseCommand : echo
14
+ arguments :
15
+ - $(inputs.ref.genome_fa) $(inputs.ref.annotation_gtf)
16
+ outputs :
17
+ references:
18
+ type :
19
+ type : record
20
+ fields :
21
+ genome_fa: string
22
+ annotation_gtf: string
23
+ outputBinding :
24
+ outputEval : $(inputs.ref)
25
+ summary:
26
+ type : stdout
You can’t perform that action at this time.
0 commit comments