1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
8 arv: http://arvados.org/cwl#
10 doc: get the gct and vcf files, add other files
15 // get files from collection
16 for (var j = 0; j < inputs.collectionArray.length; j++) {
17 for (var i = 0; i < inputs.collectionArray[j].listing.length; i++) {
18 var matchedName = inputs.collectionArray[j].listing[i].basename.match(/^(.+)(.gct|.vcf|.vcf.gz|.gct.tsv|.vcf.tsv)$/);
20 var nameString = inputs.collectionArray[j].listing[i].basename.split(".")[0]
21 fileArray.push(inputs.collectionArray[j].listing[i])
26 // get any other files from the input file array
27 for (var i = 0; i < inputs.additionalFileArray.length; i++) {
28 fileArray.push(inputs.additionalFileArray[i])
33 "collectedArray": fileArray,
34 "nameString": nameString
38 id: "#collectFiles.cwl"
40 - id: "#collectFiles.cwl/additionalFileArray"
44 - id: "#collectFiles.cwl/collectionArray"
49 - id: "#collectFiles.cwl/collectedArray"
53 - id: "#collectFiles.cwl/nameString"
56 - class: InlineJavascriptRequirement
58 doc: A workflow to collect .gct and .vcf files files and store them together with
59 specified metainformation files. Mostly used to create a collection for genestack
60 upload. Can only be run on the WB2.
62 - class: ResourceRequirement
68 - basename: metainfo.txt
70 location: keep:1cd1dbc27dc10fa8aaaf8fa19efd3bb8+237/metainfo.txt
74 - basename: test11.txt
76 location: keep:1cd1dbc27dc10fa8aaaf8fa19efd3bb8+237/test11.txt
80 doc: This input allows you to add any number of additional files to be integrated
81 in the output collection.
82 id: "#main/additionalFileArray"
88 - basename: collection1
90 location: keep:1cd1dbc27dc10fa8aaaf8fa19efd3bb8+237/collection1
91 - basename: collection2
93 location: keep:1cd1dbc27dc10fa8aaaf8fa19efd3bb8+237/collection2
94 doc: This input allows you to specify collections to integrate. From these collections,
95 all files that end with .gct or .vcf will be extracted.
96 id: "#main/collectionArray"
102 - id: "#main/genestackArray"
103 outputSource: "#main/collectFiles/collectedArray"
108 - class: SubworkflowFeatureRequirement
109 - class: ScatterFeatureRequirement
110 - class: StepInputExpressionRequirement
111 - class: InlineJavascriptRequirement
113 - id: "#main/collectFiles"
115 - id: "#main/collectFiles/additionalFileArray"
116 source: "#main/additionalFileArray"
117 - id: "#main/collectFiles/collectionArray"
118 source: "#main/collectionArray"
120 - "#main/collectFiles/collectedArray"
121 run: "#collectFiles.cwl"