Project

General

Profile

Actions

Bug #10327

open

arvados-cwl-runner fails to find secondaryFiles

Added by michael kotliar over 7 years ago. Updated about 2 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 #1

Updated by Tom Morris over 6 years ago

  • Target version set to Arvados Future Sprints
Actions #2

Updated by Ward Vandewege almost 3 years ago

  • Target version deleted (Arvados Future Sprints)
Actions #3

Updated by Peter Amstutz about 1 year ago

  • Release set to 60
Actions #4

Updated by Peter Amstutz about 2 months ago

  • Target version set to Future
Actions

Also available in: Atom PDF