Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change input binding to arguments in example files #332

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
97e919f
Change inputBinding field to arguments
Fienne Oct 23, 2022
33beacd
change inputBinding field to arguments
Fienne Oct 23, 2022
4cf29cb
change inputBinding field to arguments
Fienne Oct 23, 2022
e337f11
change inputBinding field to arguments
Fienne Oct 23, 2022
ccea546
change inputBinding field to arguments
Fienne Oct 23, 2022
d8b7667
change inputBinding field to arguments
Fienne Oct 23, 2022
988e664
change inputBinding field to arguments
Fienne Oct 23, 2022
3e2a3b2
change inputBinding field to arguments
Fienne Oct 23, 2022
80bcf00
change inputBinding field to arguments
Fienne Oct 23, 2022
1728d45
change inputBinding field to arguments
Fienne Oct 23, 2022
c81eb35
change inputBinding field to arguments
Fienne Oct 23, 2022
d589ed6
change inputBinding field to arguments
Fienne Oct 23, 2022
e58b56d
Update tar-param.cwl
Fienne Oct 23, 2022
bcb2ab0
change inputBinding field to arguments
Fienne Oct 23, 2022
9db4e49
change inputBinding field to arguments
Fienne Oct 23, 2022
086cd5d
change inputBinding field to arguments
Fienne Oct 23, 2022
699dc27
change inputBinding field to arguments
Fienne Oct 23, 2022
c8c45f8
change inputBinding field to arguments
Fienne Oct 23, 2022
1ae9c3a
change inputBinding field to arguments
Fienne Oct 23, 2022
1ac0f6c
change inputBinding field to arguments
Fienne Oct 23, 2022
b1e2888
change inputBinding field to arguments
Fienne Oct 23, 2022
50574fb
change inputBinding field to arguments
Fienne Oct 23, 2022
6fcfd54
change inputBinding field to arguments
Fienne Oct 23, 2022
b6d979e
Merge branch 'main' into change-inputBinding-to-arguments-in-example-…
tetron Oct 24, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ arguments: ["-d", $(runtime.outdir)]
inputs:
src:
type: File
inputBinding:
arguments:
position: 1
outputs:
classfile:
Expand Down
6 changes: 3 additions & 3 deletions src/_includes/cwl/custom-types/custom-types.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ inputs:
biom:
type: File
format: edam:format_3746 # BIOM
inputBinding:
arguments:
prefix: --input-fp
table_type:
type: biom-convert-table.yaml#table_type
inputBinding:
arguments:
prefix: --table-type

header_key:
Expand All @@ -37,7 +37,7 @@ inputs:
The observation metadata to include from the input BIOM table file when
creating a tsv table file. By default no observation metadata will be
included.
inputBinding:
arguments:
prefix: --header-key

baseCommand: [ biom, convert ]
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/cwl/echo.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ stdout: output.txt
inputs:
message:
type: string
inputBinding: {}
arguments: {}
outputs:
out:
type: string
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/cwl/file-formats/metadata_example.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
type: File
label: Aligned sequences in BAM format
format: edam:format_2572
inputBinding:
arguments:
position: 1

baseCommand: [ wc, -l ]
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/cwl/hello_world.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ inputs:
# A default value that can be overridden, e.g. --message "Hola mundo"
default: "Hello World"
# Bind this message value as an argument to "echo".
inputBinding:
arguments:
position: 1
outputs: []
8 changes: 4 additions & 4 deletions src/_includes/cwl/inputs/array-inputs.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@ class: CommandLineTool
inputs:
filesA:
type: string[]
inputBinding:
arguments:
prefix: -A
position: 1

filesB:
type:
type: array
items: string
inputBinding:
arguments:
prefix: -B=
separate: false
inputBinding:
arguments:
position: 2

filesC:
type: string[]
inputBinding:
arguments:
prefix: -C=
itemSeparator: ","
separate: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ inputs:
- fastq
- fasta.gz
- fastq.gz
inputBinding:
arguments:
position: 0
prefix: '--format'
outputs:
Expand Down
8 changes: 4 additions & 4 deletions src/_includes/cwl/inputs/inp.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ baseCommand: echo
inputs:
example_flag:
type: boolean
inputBinding:
arguments:
position: 1
prefix: -f
example_string:
type: string
inputBinding:
arguments:
position: 3
prefix: --example-string
example_int:
type: int
inputBinding:
arguments:
position: 2
prefix: -i
separate: false
example_file:
type: File?
inputBinding:
arguments:
prefix: --file=
separate: false
position: 4
Expand Down
8 changes: 4 additions & 4 deletions src/_includes/cwl/inputs/record.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ inputs:
fields:
itemA:
type: string
inputBinding:
arguments:
prefix: -A
itemB:
type: string
inputBinding:
arguments:
prefix: -B
exclusive_parameters:
type:
Expand All @@ -23,14 +23,14 @@ inputs:
fields:
itemC:
type: string
inputBinding:
arguments:
prefix: -C
- type: record
name: itemD
fields:
itemD:
type: string
inputBinding:
arguments:
prefix: -D
outputs:
example_out:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ inputs:
type: File
label: Aligned sequences in BAM format
format: edam:format_2572
inputBinding:
arguments:
position: 1

baseCommand: [ wc, -l ]
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/cwl/operations/echo.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ inputs:
# A default value that can be overridden, e.g. --message "Hola mundo"
default: "Hello World"
# Bind this message value as an argument to "echo".
inputBinding:
arguments:
position: 1
outputs: []
2 changes: 1 addition & 1 deletion src/_includes/cwl/outputs/array-outputs.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inputs:
type:
type: array
items: string
inputBinding:
arguments:
position: 1
outputs:
output:
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/cwl/outputs/stdout.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ stdout: output.txt
inputs:
message:
type: string
inputBinding:
arguments:
position: 1
outputs:
example_out:
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/cwl/outputs/tar.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ baseCommand: [tar, --extract]
inputs:
tarfile:
type: File
inputBinding:
arguments:
prefix: --file
outputs:
example_out:
Expand Down
4 changes: 2 additions & 2 deletions src/_includes/cwl/parameter-references/tar-param.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ baseCommand: [tar, --extract]
inputs:
tarfile:
type: File
inputBinding:
arguments:
prefix: --file
extractfile:
type: string
inputBinding:
arguments:
position: 1
outputs:
extracted_file:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ hints:
inputs:
proteinFile:
type: File
inputBinding:
arguments:
prefix: --input
applications:
type: InterProScan-apps.yml#apps[]?
inputBinding:
arguments:
itemSeparator: ','
prefix: --applications

Expand Down
2 changes: 1 addition & 1 deletion src/_includes/cwl/staging-input-files/linkfile.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ requirements:
inputs:
src:
type: File
inputBinding:
arguments:
position: 1
valueFrom: $(self.basename)

Expand Down
2 changes: 1 addition & 1 deletion src/_includes/cwl/using-containers/docker.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ hints:
inputs:
src:
type: File
inputBinding:
arguments:
position: 1
outputs:
example_out:
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/cwl/workflows/arguments.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ arguments: ["-d", $(runtime.outdir)]
inputs:
src:
type: File
inputBinding:
arguments:
position: 1
outputs:
classfile:
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/cwl/workflows/hello_world.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ baseCommand: echo
inputs:
message:
type: string
inputBinding:
arguments:
position: 1
outputs:
echo_out:
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/cwl/workflows/hello_world_to_stdout.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ baseCommand: echo
inputs:
message:
type: string
inputBinding:
arguments:
position: 1
outputs: []
4 changes: 2 additions & 2 deletions src/_includes/cwl/workflows/tar-param.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ baseCommand: [tar, --extract]
inputs:
tarfile:
type: File
inputBinding:
arguments:
prefix: --file
extractfile:
type: string
inputBinding:
arguments:
position: 1
outputs:
extracted_file:
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/cwl/workflows/wc-tool.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ arguments: ["-c"]
inputs:
input_file:
type: File
inputBinding:
arguments:
position: 1
outputs: []