Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
A
astrocyte_example_wordcount
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BioHPC
astrocyte_example_wordcount
Commits
c2938fbe
Commit
c2938fbe
authored
Apr 11, 2019
by
David Trudgian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add dummy examples of parameter types
parent
d1fef9ea
Pipeline
#7701
failed with stages
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
0 deletions
+69
-0
astrocyte_pkg.yml
astrocyte_pkg.yml
+45
-0
workflow/main.nf
workflow/main.nf
+24
-0
No files found.
astrocyte_pkg.yml
View file @
c2938fbe
...
...
@@ -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
...
...
workflow/main.nf
View file @
c2938fbe
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment