make paths variable in .cwl workflows and corresponding -job files
1
0
Entering edit mode
7.6 years ago
c.ravarani • 0

Is there a way to make paths variable in the .cwl and .yml files. Depending on what machine I am working on, the files might be located in different directories or the scripts that a step in my workflow relies on can be in a different location.

To be more specific, how could I make the /home/chris part in the run: variable to /office/home/chris in the code below?

process_fastq:
  run: /home/chris/Code/project/program.cwl
  in:
    fastqin: fastqin,
    fastqout: {default: "final.fastq"}
  out: [fastqout]

Something like this perhaps:

process_fastq:
  run: $(custom_path + 'Code/project/program.cwl')
  in:
    fastqin: fastqin,
    fastqout: {default: "final.fastq"}
  out: [fastqout]

If so do I need extra requirements:? And where would I specify the custom_path variable? In the command line when I am running the workflow?

Thank you very much for your help.

Common-Workflow-Language cwl • 1.7k views
ADD COMMENT
1
Entering edit mode
ADD COMMENT

Login before adding your answer.

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