Rules regarding secondaryFiles in subworkflows
1
0
Entering edit mode
5.7 years ago
ionox0 ▴ 390

I have workflow a step that outputs the following:

outputs:
  standard_bams:
    type: File[]
    outputSource: flatten_array_bams/output_bams

and a subsequent step that accepts this^ output:

inputs:
  standard_bam:
    type: File
    secondaryFiles: [^.bai]

I was wondering, is it only necessary to specify secondaryFiles in the inputs of the second step, and not in the outputs of the first step? (I assume this to be the case as that is what appears to be happening, but wanted to make sure).

cwl • 1.1k views
ADD COMMENT
2
Entering edit mode
5.7 years ago

This depends on where you run the workflow. Some executors have a feature to delete unnecessary intermediate files to save up on disk space during execution. Setting the secondary file on output of the first step would signal that the ^.bai file is needed and should not be deleted.

ADD COMMENT

Login before adding your answer.

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