Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
astrocyte_example_git_source
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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_git_source
Commits
ad361e6a
Commit
ad361e6a
authored
3 years ago
by
Peng Lian
Browse files
Options
Downloads
Patches
Plain Diff
Use channel to handle files
parent
50fdc1f9
Branches
Branches containing commit
1 merge request
!1
Add Submodule Support
Pipeline
#11642
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
astrocyte_pkg.yml
+2
-2
2 additions, 2 deletions
astrocyte_pkg.yml
workflow/main.nf
+6
-1
6 additions, 1 deletion
workflow/main.nf
with
8 additions
and
3 deletions
astrocyte_pkg.yml
+
2
−
2
View file @
ad361e6a
...
@@ -13,7 +13,7 @@ author: 'Peng Lian, Erand Smakaj'
...
@@ -13,7 +13,7 @@ author: 'Peng Lian, Erand Smakaj'
# A contact email address for questions
# A contact email address for questions
email
:
'
biohpc-help@utsouthwestern.edu'
email
:
'
biohpc-help@utsouthwestern.edu'
# A more informative title for the workflow package
# A more informative title for the workflow package
title
:
'
Example
g
it
Based
Workflow'
title
:
'
Example
G
it
Based
Workflow'
# A summary of the workflow package in plain text
# A summary of the workflow package in plain text
description
:
|
description
:
|
This is a minimal example that uses Astrocyte as a runner to run an existing workflow in a given git repo.
This is a minimal example that uses Astrocyte as a runner to run an existing workflow in a given git repo.
...
@@ -119,7 +119,7 @@ workflow_parameters:
...
@@ -119,7 +119,7 @@ workflow_parameters:
A parameter that need to be passed to the above command
A parameter that need to be passed to the above command
-
id
:
parameter_nonopt
-
id
:
parameter_nonopt
type
:
string
type
:
file
required
:
false
required
:
false
description
:
|
description
:
|
A non-optinal parameter that need to be passed to the above command
A non-optinal parameter that need to be passed to the above command
...
...
This diff is collapsed.
Click to expand it.
workflow/main.nf
+
6
−
1
View file @
ad361e6a
...
@@ -16,6 +16,8 @@ params.parameter1 = "A"
...
@@ -16,6 +16,8 @@ params.parameter1 = "A"
params.parameter2 = "B"
params.parameter2 = "B"
params.parameter_nonopt = "$baseDir/../test_data/mobydick.txt"
params.parameter_nonopt = "$baseDir/../test_data/mobydick.txt"
// It's better to use a channel to handle the files
inputfiles = Channel.fromPath( params.parameter_nonopt )
process parameters {
process parameters {
...
@@ -43,12 +45,15 @@ process run_source {
...
@@ -43,12 +45,15 @@ process run_source {
queue 'super'
queue 'super'
cpus 1
cpus 1
input:
file inputfile from inputfiles
output:
output:
file "astrocyte_run.out"
file "astrocyte_run.out"
file "astrocyte_run.err"
file "astrocyte_run.err"
"""
"""
# run the program with received parameters
# run the program with received parameters
eval $baseDir/../workflow/external_repo/astrocyte_example_git_source__slave/${params.source_entrypoint} -p1 ${params.parameter1} -p2 ${params.parameter2} $
{params.parameter_nonopt}
1> astrocyte_run.out 2> astrocyte_run.err
eval $baseDir/../workflow/external_repo/astrocyte_example_git_source__slave/${params.source_entrypoint} -p1 ${params.parameter1} -p2 ${params.parameter2} $
inputfile
1> astrocyte_run.out 2> astrocyte_run.err
"""
"""
}
}
\ No newline at end of file
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