From 8bd7604c31aa2d69c2f1e5d29d2e85ff128b9d11 Mon Sep 17 00:00:00 2001
From: mancini <mancini@astron.nl>
Date: Tue, 1 Oct 2019 14:33:08 +0200
Subject: [PATCH] Add make sourcedb step and parset selector step

---
 steps/check_ateam_separation.cwl | 10 ++++++++
 steps/make_sourcedb_ateam.cwl    | 43 ++++++++++++++++++++++++++++++++
 steps/parsetselector.cwl         | 30 ++++++++++++++++++++++
 3 files changed, 83 insertions(+)
 create mode 100644 steps/check_ateam_separation.cwl
 create mode 100644 steps/make_sourcedb_ateam.cwl
 create mode 100644 steps/parsetselector.cwl

diff --git a/steps/check_ateam_separation.cwl b/steps/check_ateam_separation.cwl
new file mode 100644
index 00000000..f62490c0
--- /dev/null
+++ b/steps/check_ateam_separation.cwl
@@ -0,0 +1,10 @@
+$namespaces:
+  sbg: 'https://www.sevenbridges.com/'
+id: check_ateam_separation
+label: check_Ateam_separation
+class: CommandLineTool
+cwlVersion: v1.0
+inputs: []
+outputs: []
+baseCommand: ''
+doc: ''
diff --git a/steps/make_sourcedb_ateam.cwl b/steps/make_sourcedb_ateam.cwl
new file mode 100644
index 00000000..00a834d9
--- /dev/null
+++ b/steps/make_sourcedb_ateam.cwl
@@ -0,0 +1,43 @@
+class: CommandLineTool
+cwlVersion: v1.0
+$namespaces:
+  sbg: 'https://www.sevenbridges.com/'
+id: make_sourcedb_ateam
+baseCommand:
+  - makesourcedb
+inputs:
+  - id: error_tolerance
+    type: float?
+    inputBinding:
+      position: 0
+      separate: false
+  - id: sky_model
+    type: File
+    inputBinding:
+      position: 0
+      prefix: in=
+      separate: false
+  - default: out.sourcedb
+    id: output_file_name
+    type: string?
+    inputBinding:
+      position: 0
+      prefix: out=
+      separate: false
+  - default: blob
+    id: outtype
+    type: string?
+    inputBinding:
+      position: 0
+      prefix: outtype=
+      separate: false
+outputs:
+  - id: output
+    type: Directory
+    outputBinding:
+      glob: $(inputs.output_file_name)
+label: make_sourcedb_ateam
+requirements:
+  - class: DockerRequirement
+    dockerPull: prefactor
+  - class: InlineJavascriptRequirement
diff --git a/steps/parsetselector.cwl b/steps/parsetselector.cwl
new file mode 100644
index 00000000..7ee1dd0a
--- /dev/null
+++ b/steps/parsetselector.cwl
@@ -0,0 +1,30 @@
+class: CommandLineTool
+cwlVersion: v1.0
+$namespaces:
+  sbg: 'https://www.sevenbridges.com/'
+id: parsetselector
+baseCommand: 'echo'
+inputs:
+  - id: selector
+    type: boolean
+    doc: 'if true selects parset_a, files_a if false selects parset_b files_b'
+  - id: parset_a
+    type: File
+  - id: files_a
+    type: 'File[]'
+  - id: parset_b
+    type: File
+  - id: files_b
+    type: 'File[]'
+outputs:
+  - id: parset_out
+    type: File
+    outputBinding:
+      outputEval: '$(inputs.selector ? inputs.parset_a : inputs.parset_b )'
+  - id: files_out
+    type: 'File[]'
+    outputBinding:
+      outputEval: '$(inputs.selector ? inputs.files_a : inputs.files_b )'
+label: ParsetSelector
+requirements:
+  - class: InlineJavascriptRequirement
-- 
GitLab