Project

General

Profile

Actions

Bug #10327

open

arvados-cwl-runner fails to find secondaryFiles

Added by michael kotliar about 8 years ago. Updated 10 months ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
Crunch
Target version:
Story points:
-
Release:
Release relationship:
Auto

Description

Hello. Following example always fails with error, no matter which way I set secondaryFiles. I assumed that this is a bug, because for cwl-runner (v1.0) it works fine. Both files (aligned.bam and aligned.bam.bai) are in the same folder.

    IOError: [Errno 2] File not found: u'aligned.bam.bai'

Testing example:
- task.cwl

cwlVersion: v1.0
class: CommandLineTool

hints:
  DockerRequirement:
    dockerPull: ubuntu

requirements:
  - class: InlineJavascriptRequirement

baseCommand: echo
arguments:
  - valueFrom: $(inputs.fileName.basename)
    position: 1
  - valueFrom: $(inputs.fileName.secondaryFiles[0].basename)
    position: 2

inputs:
  fileName:
    type: File
#    secondaryFiles:
#      - .bai
    secondaryFiles: |
       ${
           return {"location": self.location+".bai", "class": "File"};
       }

outputs: []

- job.yml

{
    "fileName": {
        "class": "File",
        "location": "aligned.bam" 
    }
}

Actions

Also available in: Atom PDF