Skip to content
Snippets Groups Projects
Select Git revision
  • 697bf0889f7b6f78b9c43eac37d5a8bfa420506c
  • master default protected
  • new_losoto
  • RAP-141
  • bugfix_losoto_interp
  • v4.0
  • ldv_v401
  • ldv_v40
  • ldv_v031
  • ldv_v03
  • ldv_v01
11 results

ms_concat.cwl

Blame
  • Forked from ResearchAndDevelopment / LINC
    769 commits behind, 531 commits ahead of the upstream repository.
    Marcel Loose's avatar
    Marcel Loose authored
    Some of the inline scripts (bash or python) have names like "script.py",
    which is not very helpful for debugging. Renamed the scripts for those
    workflows that contained either script.py or script.sh.
    
    
    Former-commit-id: 05c75d3e
    697bf088
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    ms_concat.cwl 1.75 KiB
    class: CommandLineTool
    cwlVersion: v1.1
    $namespaces:
      sbg: 'https://www.sevenbridges.com/'
    id: ms_concat
    baseCommand:
      - /bin/bash
      - ms_concat.sh
    inputs:
      - default: 50
        id: min_length
        type: int?
        inputBinding:
          position: 0
          prefix: '--min_length'
        doc: Minimum amount of subbands to concatenate in frequency.
      - id: overhead
        type: float?
        default: 0.8
        inputBinding:
          position: 0
          prefix: '--overhead'
        doc: |
          Only use this fraction of the available memory for deriving the amount
          of data to be concatenated.
      - id: msin
        type: 'Directory[]'
      - default: out.MS
        id: msout
        type: string
        inputBinding:
          position: 2
    outputs:
      - id: concat_meta_ms
        type: 'Directory'
        outputBinding:
          glob: |
            workdir/$(inputs.msout)_[0-9*]
      - id: concat_additional_ms
        type: 'Directory'
        outputBinding:
          glob: |
            workdir/$(inputs.msout)_*_CONCAT
      - id: ms_outs
        type: 'Directory[]'
        outputBinding:
           glob: 'workdir/out_*'
      - id: logfile
        type: File
        outputBinding:
          glob: ms_concat.log
    label: ms_concat
    hints:
      - class: DockerRequirement
        dockerPull: 'lofareosc/prefactor3-cwl'
    requirements:
      - class: ShellCommandRequirement
      - class: InitialWorkDirRequirement
        listing:
          - entry: $(inputs.msin)
            writable: true
          - entryname: ms_concat.sh
            entry: |
              #!/bin/bash
              directories=\$(ls -d out_*)
              #echo \$directories
              mkdir -pv workdir
              cp -r \$directories workdir/. && cd workdir
              concat_MS_CWL.py \$1 \$2 \$3 \$4 \$directories \$5
      - class: InplaceUpdateRequirement
        inplaceUpdate: true
      - class: InlineJavascriptRequirement
    stdout: ms_concat.log
    stderr: ms_concat_err.log