-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests for choices, prefixes, parents, update example
- Loading branch information
Anton Khodak
committed
Jun 19, 2016
1 parent
0d06041
commit 6f85899
Showing
2 changed files
with
110 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,43 @@ | ||
- id: search | ||
class: CommandLineTool | ||
baseCommand: python | ||
requirements: | ||
- class: InlineJavascriptRequirement | ||
inputs: | ||
- id: file | ||
type: File | ||
inputBinding: | ||
position: 1 | ||
secondaryFiles: | ||
- ".idx1" | ||
- "^.idx2" | ||
- '$(self.path+".idx3")' | ||
- '$({"path": self.path+".idx4", "class": "File"})' | ||
- '${ return self.path+".idx5"; }' | ||
- id: search.py | ||
type: File | ||
default: | ||
class: File | ||
path: search.py | ||
inputBinding: | ||
position: 0 | ||
- id: term | ||
type: string | ||
inputBinding: | ||
position: 2 | ||
outputs: | ||
- id: result | ||
type: File | ||
outputBinding: | ||
glob: result.txt | ||
stdout: result.txt | ||
#!/usr/bin/env cwl-runner | ||
# This tool description was formed automatically by argparse2cwl ver. 0.2.5 | ||
# To form again: $ python --generate_cwl_tool | ||
# Help: $ python --help_arg2cwl | ||
|
||
cwlVersion: "cwl:draft-3" | ||
|
||
class: CommandLineTool | ||
baseCommand: ['python'] | ||
|
||
requirements: | ||
- class: InlineJavascriptRequirement | ||
|
||
description: | | ||
Toy program to search inverted index and print out each line the term appears | ||
|
||
inputs: | ||
|
||
- id: search.py | ||
type: File | ||
default: | ||
class: File | ||
path: search.py | ||
inputBinding: | ||
position: 0 | ||
|
||
|
||
- id: mainfile | ||
type: File | ||
|
||
description: Text file to be indexed | ||
inputBinding: | ||
position: 1 | ||
|
||
- id: term | ||
type: string | ||
|
||
description: Term for search | ||
inputBinding: | ||
position: 2 | ||
|
||
outputs: | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters