Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
astrocyte_example_wordcount
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Iterations
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Astrocyte
Workflows
BioHPC
astrocyte_example_wordcount
Commits
c2938fbe
Commit
c2938fbe
authored
6 years ago
by
David Trudgian
Browse files
Options
Downloads
Patches
Plain Diff
Add dummy examples of parameter types
parent
d1fef9ea
Branches
Branches containing commit
Tags
publish_0.0.7
test_0.0.1
No related merge requests found
Pipeline
#7701
failed with stages
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
astrocyte_pkg.yml
+45
-0
45 additions, 0 deletions
astrocyte_pkg.yml
workflow/main.nf
+24
-0
24 additions, 0 deletions
workflow/main.nf
with
69 additions
and
0 deletions
astrocyte_pkg.yml
+
45
−
0
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
...
...
This diff is collapsed.
Click to expand it.
workflow/main.nf
+
24
−
0
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment