Closed pditommaso closed 4 years ago
The baseCommand should also be able to take a list
cwlVersion: v1.0
class: CommandLineTool
baseCommand: [tar, xf]
inputs:
tarfile:
type: File
inputBinding:
position: 1
extractfile:
type: string
inputBinding:
position: 2
outputs:
example_out:
type: File
outputBinding:
glob: $(inputs.extractfile)
Results in
Command executed:
[tar, xf] hello.tar Hello.java
I'll try to take a look at this too.
Modifying the previous code. The prefix
tag should also be supported.
cwlVersion: v1.0
class: CommandLineTool
baseCommand: tar
inputs:
tarfile:
type: File
inputBinding:
prefix: xf
position: 1
extractfile:
type: string
inputBinding:
position: 2
outputs:
example_out:
type: File
outputBinding:
glob: $(inputs.extractfile)
well, it's veeeery experimental :)
Submitted process > name
Is this feature still being developed?
In the hands of contributors.
I personally plan on continuing to work on it once I have more time.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
In the case this may resurrect, now there's Java "client" for CWL https://github.com/common-workflow-language/cwljava
The goal of this enhancement is to add to Nextflow the ability to execute CWL
CommandLineTool
definitions in a native manner ie. the CWL descriptor is mapped to NF internal data structure and execute as NF process.This idea was envisioned by @skptic and @viklund during the September NF hackathon.
A first prototypal implementation is available in the cwl-task branch.
It allows to import a basic CWL
CommonLineTool
YAML definition file and to execute it a a NF process. For example, given the following CWL definition namedsamtools.cwl
as shown below:In the NF script it's possible to import it and execute as shown below:
indexout
.