CWL: SoftwareRequirement definition
1
0
Entering edit mode
7.5 years ago

I'm trying to create a common workflow language script, to run on a server, that requires spades be initialized with the command module load spades my requirements section looks like this

requirements:
  SoftwareRequirement:
    packages:
      spades:
        specs: [ "module load spades" ]

I get the following error when I run the tool

Tool definition failed initialization:
SPAdes.cwl:7:3: Unsupported requirement SoftwareRequirement

what could be wrong with my code

cwl SoftwareRequirement specs • 1.8k views
ADD COMMENT
1
Entering edit mode
7.5 years ago

Hello kevin.o.oluoch and thank you for your question.

Seems like the SoftwareRequirement is not supported by the CWL implementation you are using. You may want to move this to hints

Additionally the specs is misformatted:

In the CWL v1.0 specification http://www.commonwl.org/v1.0/CommandLineTool.html#SoftwarePackage we see that

specs, array<string>, Must be one or more IRIs identifying resources for installing or enabling the software. Implementations may provide resolvers which map well-known software spec IRIs to some configuration action.

For example, an IRI https://packages.debian.org/jessie/bowtie could be resolved with apt-get install bowtie. An IRI https://anaconda.org/bioconda/bowtie could be resolved with conda install -c bioconda bowtie.

Tools may also provide IRIs to index entries such as RRID, such as http://identifiers.org/rrid/RRID:SCR_005476

For example, from my description of MetaSPAdes (https://github.com/ProteinsWebTeam/ebi-metagenomics-cwl/blob/master/tools/metaspades.cwl): specs: [ "https://identifiers.org/rrid/RRID:SCR_000131" ]

ADD COMMENT
1
Entering edit mode

This is helpful, I will just module load spades before running the script

ADD REPLY

Login before adding your answer.

Traffic: 2932 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