Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LINC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ResearchAndDevelopment
LINC
Commits
1b5b5d87
Commit
1b5b5d87
authored
5 years ago
by
alex
Browse files
Options
Downloads
Patches
Plain Diff
add concat step
Former-commit-id:
7edd5620
[formerly
0f102300
] Former-commit-id:
acd2618b
Former-commit-id:
1acbf4c4
parent
fac11554
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
steps/bulk_rename.cwl
+7
-5
7 additions, 5 deletions
steps/bulk_rename.cwl
steps/concatenate_files.cwl
+37
-0
37 additions, 0 deletions
steps/concatenate_files.cwl
workflows/HBA_calibrator.cwl
+4
-4
4 additions, 4 deletions
workflows/HBA_calibrator.cwl
with
48 additions
and
9 deletions
steps/bulk_rename.cwl
+
7
−
5
View file @
1b5b5d87
...
...
@@ -15,12 +15,11 @@ inputs:
type: string
- id: file_suffix
type: string?
default: log
outputs:
- id: output
type: File
type:
'
File
[]'
outputBinding:
glob: "$(inputs.file_prefix)
.$(inputs.file_suffix)
"
glob: "
tmp/
$(inputs.file_prefix)
*
"
label: bulk_rename
requirements:
- class: InitialWorkDirRequirement
...
...
@@ -32,6 +31,9 @@ requirements:
FILE_LIST=("\${@}")
FILE_PREFIX=$(inputs.file_prefix)
FILE_SUFFIX=$(inputs.file_suffix === null ? '' : inputs.file_suffix)
cat "\${FILE_LIST[@]}" > "\$FILE_PREFIX.\$FILE_SUFFIX"
mkdir tmp
for i in "\${!FILE_LIST[@]}"; do
cp "\${FILE_LIST[\$i]}" "tmp/\${FILE_PREFIX}_\${i}\${FILE_SUFFIX}"
done
writable: false
- class: InlineJavascriptRequirement
- class: InlineJavascriptRequirement
\ No newline at end of file
This diff is collapsed.
Click to expand it.
steps/concatenate_files.cwl
0 → 100644
+
37
−
0
View file @
1b5b5d87
class: CommandLineTool
cwlVersion: v1.0
$namespaces:
sbg: 'https://www.sevenbridges.com/'
id: bulk_rename
baseCommand:
- bash
- bulk_rename.sh
inputs:
- id: file_list
type: 'File[]'
inputBinding:
position: 0
- id: file_prefix
type: string
- id: file_suffix
type: string?
default: log
outputs:
- id: output
type: File
outputBinding:
glob: "$(inputs.file_prefix).$(inputs.file_suffix)"
label: bulk_rename
requirements:
- class: InitialWorkDirRequirement
listing:
- entryname: bulk_rename.sh
entry: |
#!/bin/bash
set -e
FILE_LIST=("\${@}")
FILE_PREFIX=$(inputs.file_prefix)
FILE_SUFFIX=$(inputs.file_suffix === null ? '' : inputs.file_suffix)
cat "\${FILE_LIST[@]}" > "\$FILE_PREFIX.\$FILE_SUFFIX"
writable: false
- class: InlineJavascriptRequirement
This diff is collapsed.
Click to expand it.
workflows/HBA_calibrator.cwl
+
4
−
4
View file @
1b5b5d87
class: Workflow
cwlVersion: v1.0
id:
_h_b_a
_calibrator
id:
HBA
_calibrator
label: HBA_calibrator
$namespaces:
sbg: 'https://www.sevenbridges.com/'
...
...
@@ -73,7 +73,7 @@ inputs:
'sbg:y': -500
- id: maxStddev
type: float?
default: -1
default: -1
.0
'sbg:x': -1000
'sbg:y': -400
- id: solutions2transfer
...
...
@@ -160,7 +160,7 @@ inputs:
'sbg:y': 1200
- id: max_separation_arcmin
type: float?
default: 1
default: 1
.0
'sbg:x': -1000
'sbg:y': 1300
- id: calibrator_path_skymodel
...
...
@@ -319,7 +319,7 @@ steps:
default: dppp_prep_cal
out:
- id: output
run: ./../steps/
bulk_rename
.cwl
run: ./../steps/
concatenate_files
.cwl
label: concat_logfiles
'sbg:x': 500
'sbg:y': 1000
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment