Creating a temporary directory for tools to use
1
0
Entering edit mode
5.4 years ago
ionox0 ▴ 390

What would be the easiest way to make a directory using CWL?

For example a temporary directory that needed to exist for a tool to run

cwl • 764 views
ADD COMMENT
2
Entering edit mode
5.4 years ago
ionox0 ▴ 390

Thank you to @Mr-C for the answer to this one:

A variation on http://www.commonwl.org/user_guide/14-runtime/index.html is at https://github.com/common-workflow-language/common-workflow-language/blob/master/v1.0/v1.0/writable-dir-docker.cwl

class: CommandLineTool

requirements:
  - class: InlineJavascriptRequirement
  - class: InitialWorkDirRequirement
    listing:
      - entryname: empty_dir
        entry: "$({class: 'Directory', listing: []})"
        writable: true

inputs: []

outputs:
  empty_dir:
    type: Directory
    outputBinding:
      glob: empty_dir

I've found this useful for making temporary directories that can be used at later steps in the workflow.

ADD COMMENT

Login before adding your answer.

Traffic: 3404 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6