Skip to content
This repository was archived by the owner on Oct 2, 2020. It is now read-only.

Commit

Permalink
Update to draft-3, add note about docker v1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Apr 18, 2016
1 parent b48c6e7 commit 920c6be
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 14 deletions.
6 changes: 5 additions & 1 deletion workflows/lobSTR/README
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ To run locally, you may install the reference implementation of CWL:
$ wget http://files.teamerlich.org/lobstr/v3/ref/lobSTR_v3.0.2_hg19_resource_bundle.tar.gz
$ tar xvzf lobSTR_v3.0.2_hg19_resource_bundle.tar.gz

3) Run the demo:
3) Ensure your docker version is compatible with the Arvados image ( < 1.10 ):

$ docker --version

4) Run the demo:

$ ./lobSTR-workflow.cwl lobSTR-demo.json

Expand Down
15 changes: 9 additions & 6 deletions workflows/lobSTR/allelotype.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ class: CommandLineTool

description: Run lobSTR allelotype classifier.

requirements:
- class: InlineJavascriptRequirement

inputs:
- id: bam
type: File
Expand Down Expand Up @@ -45,7 +48,7 @@ inputs:
inputBinding:
prefix: "--index-prefix"
valueFrom: |
${ return {"path": $self.path.match(/(.*)ref\.fasta/)[1], "class": "File"}; }
${ return {"path": self.path.match(/(.*)ref\.fasta/)[1], "class": "File"}; }

secondaryFiles:
- ".amb"
Expand All @@ -55,19 +58,19 @@ inputs:
- ".rbwt"
- ".rpac"
- ".rsa"
- ${return $self.replace(/(.*)ref\.fasta/, "$1chromsizes.tab")}
- ${return $self.replace(/(.*)ref\.fasta/, "$1mergedref.bed")}
- ${return $self.replace(/(.*)ref\.fasta/, "$1ref_map.tab")}
- ${return self.path.replace(/(.*)ref\.fasta/, "$1chromsizes.tab")}
- ${return self.path.replace(/(.*)ref\.fasta/, "$1mergedref.bed")}
- ${return self.path.replace(/(.*)ref\.fasta/, "$1ref_map.tab")}

outputs:
- id: vcf
type: File
outputBinding:
glob: $(job.output_prefix + '.vcf')
glob: $(inputs['output_prefix'] + '.vcf')
- id: "#vcf_stats"
type: File
outputBinding:
glob: $(job.output_prefix + '.allelotype.stats')
glob: $(inputs['output_prefix'] + '.allelotype.stats')

baseCommand: ["allelotype", "--command", "classify"]

Expand Down
4 changes: 2 additions & 2 deletions workflows/lobSTR/lobSTR-tool.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,12 @@ outputs:
- id: bam
type: File
outputBinding:
glob: $(job.output_prefix + '.aligned.bam')
glob: $(inputs['output_prefix'] + '.aligned.bam')
- id: bam_stats
type: File
outputBinding:
glob: $(job.output_prefix + '.aligned.stats')
glob: $(inputs['output_prefix'] + '.aligned.stats')
baseCommand: ["lobSTR"]
arguments:
Expand Down
8 changes: 4 additions & 4 deletions workflows/lobSTR/lobSTR-workflow.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@ inputs:
outputs:
- id: bam
type: File
source: "#samindex.bam_with_bai"
source: "#samindex/bam_with_bai"

- id: bam_stats
type: File
source: "#lobSTR.bam_stats"
source: "#lobSTR/bam_stats"

- id: vcf
type: File
source: "#allelotype.vcf"
source: "#allelotype/vcf"

- id: vcf_stats
type: File
source: "#allelotype.vcf_stats"
source: "#allelotype/vcf_stats"

hints:
- class: DockerRequirement
Expand Down
2 changes: 1 addition & 1 deletion workflows/lobSTR/samtools-sort.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ outputs:
- id: output_file
type: File
outputBinding:
glob: $(job['output_name'])
glob: $(inputs['output_name'])
baseCommand: ["samtools", "sort"]
Expand Down

0 comments on commit 920c6be

Please sign in to comment.