CWL: Does cwltool support to download both input file and its secondaryFiles remotely?
1
0
Entering edit mode
5.2 years ago
Linda • 0

As mentioned in issue: https://github.com/common-workflow-language/cwltool/pull/507

cwltool allows http/https as input, that means it will automatically download and stage the remote input files for both tools and workflows.

One question here is: does cwltool also support the secondaryFiles which are also remote?

For example:

If define workflow.cwl file as:

Inputs:
     ref_file:
     type: File?
     secondaryFiles: ['.fai?']

Can I define the input in the job.yaml file as following:

ref_file:
    path: http://ftp.1000genomes.ebi.ac.uk/vol1/ftp/technical/reference/GRCh38_reference_genome/GRCh38_full_analysis_set_plus_decoy_hla.fa
    class: File
    secondaryFiles:
    - class: File
       path: http://ftp.1000genomes.ebi.ac.uk/vol1/ftp/technical/reference/GRCh38_reference_genome/GRCh38_full_analysis_set_plus_decoy_hla.fa.fai
cwl workflow • 1.3k views
ADD COMMENT
2
Entering edit mode
5.1 years ago

Hello Linda, and thank you for your posting,

Yes, this should work, but use location instead of path when specifying using URLs

ref_file:
    location: http://ftp.1000genomes.ebi.ac.uk/vol1/ftp/technical/reference/GRCh38_reference_genome/GRCh38_full_analysis_set_plus_decoy_hla.fa
    class: File
    secondaryFiles:
    - class: File
       location: http://ftp.1000genomes.ebi.ac.uk/vol1/ftp/technical/reference/GRCh38_reference_genome/GRCh38_full_analysis_set_plus_decoy_hla.fa.fai
ADD COMMENT

Login before adding your answer.

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