Commit c2938fbe authored by David Trudgian's avatar David Trudgian

Add dummy examples of parameter types

parent d1fef9ea
Pipeline #7701 failed with stages
......@@ -87,7 +87,52 @@ workflow_parameters:
regex: ".*(txt)"
min: 1
- id: test_int
type: integer
required: true
default: 123
min: 1
max: 1000
description: |
This is an example integer field, it is not used by the workflow
- id: test_real
type: real
required: true
default: 123.456
min: 1
max: 1000
description: |
This is an example real field, it is not used by the workflow
- id: test_string
type: string
required: true
default: "Example"
description: |
This is an example string field, it is not used by the workflow
- id: test_select
type: select
required: true
default: "Dog"
description: |
This is an example select field, it is not used by the workflow
choices:
- [ 'Cat', 'Cat, Kitten' ]
- [ 'Dog', 'Dog, Puppy' ]
- [ 'Horse', 'Horse, Foal' ]
- id: test_multiselect
type: multiselect
required: true
default: "Banana"
description: |
This is an example multiselect field, it is not used by the workflow
choices:
- [ 'Apple', 'Green Apple' ]
- [ 'Banana', 'Yellow Banana' ]
- [ 'Strawberry', 'Red Strawberry' ]
# -----------------------------------------------------------------------------
# SHINY APP CONFIGURATION
......
......@@ -14,8 +14,32 @@
// Note - $baseDir is the location of this workflow file main.nf
params.story = "$baseDir/../test_data/mobydick.txt"
// Parameters for test values, only used for demonstrating parameter types
params.test_int = 999
params.test_real = 999.99
params.test_string = "Default String"
params.test_select = "Default Selection"
params.test_multiselect = "Default Selection"
stories = Channel.fromPath( params.story )
process parameters {
cpus 1
"""
echo "Test Parameters Provided..."
echo "story: ${params.story}"
echo "test_int: ${params.test_int}"
echo "test_real: ${params.test_real}"
echo "test_string: ${params.test_string}"
echo "test_select: ${params.test_select}"
echo "test_multiselect: ${params.test_multiselect}"
"""
}
process uppercase {
cpus 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment