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
8f8e2fd4
Commit
8f8e2fd4
authored
1 year ago
by
Peng Lian
Browse files
Options
Downloads
Patches
Plain Diff
Executed with slrum, fully containerized
parent
10787f8c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#13197
failed with stages
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+4
-0
4 additions, 0 deletions
.gitignore
astrocyte_pkg.yml
+8
-12
8 additions, 12 deletions
astrocyte_pkg.yml
workflow/configs/biohpc.config
+9
-7
9 additions, 7 deletions
workflow/configs/biohpc.config
workflow/main.nf
+6
-1
6 additions, 1 deletion
workflow/main.nf
with
27 additions
and
20 deletions
.gitignore
+
4
−
0
View file @
8f8e2fd4
...
...
@@ -3,3 +3,7 @@ workflow/*.html
workflow/*.csv
.history
.nextflow.log
*.img
*.txt
*.wordcount
This diff is collapsed.
Click to expand it.
astrocyte_pkg.yml
+
8
−
12
View file @
8f8e2fd4
...
...
@@ -9,18 +9,14 @@
# A unique identifier for the workflow package, text/underscores only
name
:
'
example_wordcount'
# Who wrote this?
author
:
'
Peng
Lian
,
Devin
OKelly
'
author
:
'
Peng
Lian'
# A contact email address for questions
email
:
'
biohpc-help@utsouthwestern.edu'
# A more informative title for the workflow package
title
:
'
Example
Wordcount
Workflow'
# A summary of the workflow package in plain text
description
:
|
This is a minimal test workflow package that counts the occurences of words
in a test file. It can be used as a template to develop workflows, and as to
test the astrocyte platform. Please note that start from publish version
0.0.8 and test version 0.0.2, this workflow will only support Astrocyte 0.4.1
and above.
Fully containerized version, runs with BioHPC registry and slurm.
#### New Features in Astrocyte 0.4.0 and above ####
citation
:
|
...
...
@@ -62,13 +58,13 @@ documentation_files:
# Remember - The workflow file is always named 'workflow/main.f'
# The workflow must publish all final output into $baseDir
# A list of clu
e
ter environment modules that this workflow requires to run.
# Specify versioned module names to ensure reproduc
a
bility.
# A list of clu
s
ter environment modules that this workflow requires to run.
# Specify versioned module names to ensure reproduc
i
bility.
workflow_modules
:
-
Test
# A list of container images requires to run this workflow.
# Specify full path and version names to ensure reproduc
a
bility.
# Specify full path and version names to ensure reproduc
i
bility.
# This keyword is required when 'container' is specified in Astrocyte 0.4.1 and above.
# Singularity supports different registries, please specify the protocol to use.
# Such as, "docker://", "shub://", "library://", etc. We encourage you to use the GitLab
...
...
@@ -96,7 +92,7 @@ workflow_containers:
# OPTIONAL INFORMATION
# default: A default value for the parameter (optional)
# min: Minium value/characters/files for number/string/files types
# max: Max
u
mum value/characters/files for number/string/files types
# max: Max
i
mum value/characters/files for number/string/files types
# regex: A regular expression that describes valid entries / filenames
#
# SELECT TYPE
...
...
@@ -175,7 +171,7 @@ workflow_parameters:
# The workflow must publish all final output into $baseDir
# Name of the R module that the vizapp will run against
# A containerized version is recomm
a
nded.
# A containerized version is recomm
e
nded.
vizapp_r_module
:
'
R/4.1.1-img'
# List of any CRAN packages, not provided by the modules, that must be made
...
...
@@ -191,7 +187,7 @@ vizapp_bioc_packages:
-
# # List of any packages to install from GitHub using devtools, that must be
# made availa
v
le to the vizapp
# made availa
b
le to the vizapp
vizapp_github_packages
:
-
...
...
This diff is collapsed.
Click to expand it.
workflow/configs/biohpc.config
+
9
−
7
View file @
8f8e2fd4
...
...
@@ -9,19 +9,21 @@ singularity {
}
process
{
executor
=
'local'
executor
=
'slurm'
clusterOptions
=
'--hold --no-kill'
queue
=
'super'
withName
:
parameters
{
//
Path
to
the
singularity
image
files
.
The
prefix
"file://images/singularity/"
is
the
cacheDir
folder
//
in
the
singularity
settings
.
Please
keep
this
prefix
for
the
path
of
your
singularity
images
container
=
'file://images/singularity/ubuntu-latest.img'
container
=
'docker://git.biohpc.swmed.edu:5050/astrocyte/workflows/biohpc/astrocyte_example_wordcount/ubuntu:latest'
}
withName
:
uppercase
{
container
=
'
file://images/singularity
/ubuntu
-
latest
.img
'
container
=
'
docker://git.biohpc.swmed.edu:5050/astrocyte/workflows/biohpc/astrocyte_example_wordcount
/ubuntu
:
latest'
}
withName
:
tolines
{
container
=
'
file://images/singularity/ubuntu-latest.img
'
container
=
'
docker://git.biohpc.swmed.edu:5050/astrocyte/workflows/biohpc/astrocyte_example_wordcount/centos:centos8
'
}
withName
:
wordcounts
{
container
=
'
file://images/singularity
/centos
-
centos8
.img
'
container
=
'
docker://git.biohpc.swmed.edu:5050/astrocyte/workflows/biohpc/astrocyte_example_wordcount
/centos
:
centos8'
}
}
This diff is collapsed.
Click to expand it.
workflow/main.nf
+
6
−
1
View file @
8f8e2fd4
...
...
@@ -30,10 +30,15 @@ process parameters {
"""
echo ""
echo "This script is running on:"
echo "This script is running on \$(hostname):"
echo ""
cat /etc/os-release
echo ""
echo "The ENV of this host is:"
env
echo ""
echo "Test Parameters Provided..."
echo "story: ${params.story}"
echo "test_int: ${params.test_int}"
...
...
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