CWLtools version problem with usage of secondary files and java expression
1
0
Entering edit mode
5.6 years ago
a.james ▴ 240

Dear All,

I have tried using java expression to capture all secondary files from STAR aligner in CWLtools version from 2018 October and 2019 February.

On 2018 October version it is running successfully without any issues, whereas on 2019 February version it is throwing error.

Here is what I tried : the last part where I added secondary files on star.cwl, ignores to capture the log files.

secondaryFiles: |
    ${
         var p=inputs.outFileNamePrefix?inputs.outFileNamePrefix:"";
         return [
           {"path": p+"Log.final.out", "class":"File"},
           {"path": p+"SJ.out.tab", "class":"File"},
           {"path": p+"Log.out", "class":"File"}
         ];
     }

And on 2019 February version the same tool is throwing following error,

May 03 19:09:00 ..... started STAR run
May 03 19:09:00 ..... loading genome
May 03 19:09:19 ..... started mapping
May 03 19:09:50 ..... started sorting BAM
May 03 19:09:52 ..... finished successfully
[job star] Max memory used: 1461MiB
[job star] Job error:
Error collecting output for parameter 'star_bam':
cwltools/star.cwl:182:3: string indices must be integers
[job star] completed permanentFail

Any suggestions help is much appreciated!! Thank you

CWL • 1.3k views
ADD COMMENT
1
Entering edit mode
ADD REPLY
2
Entering edit mode
ADD COMMENT

Login before adding your answer.

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