Skip to content
Snippets Groups Projects
Commit 08c17bc0 authored by Felix Perez's avatar Felix Perez
Browse files

Add cleanlines process.

parent 37b9c64e
Branches
Tags
1 merge request!6Add cleanlines process.
......@@ -22,6 +22,9 @@ process {
withName:tolines {
container = 'docker://git.biohpc.swmed.edu:5050/astrocyte/workflows/biohpc/astrocyte_example_wordcount/centos:centos8'
}
withName:cleanlines {
container = 'docker://git.biohpc.swmed.edu:5050/astrocyte/workflows/biohpc/astrocyte_example_wordcount/centos:centos8'
}
withName:wordcounts {
container = 'docker://git.biohpc.swmed.edu:5050/astrocyte/workflows/biohpc/astrocyte_example_wordcount/centos:centos8'
}
......
......@@ -83,13 +83,30 @@ process tolines {
}
process cleanlines {
cpus 1
input:
file rawlines from tolines
output:
file "${rawlines.name}.cleanlines" into cleanlines
// "awk NF": Print all non-empty lines.
"""
cat "$rawlines" | awk NF > ${rawlines.name}.cleanlines
"""
}
process wordcounts {
// Publish the outputs we create here into the workflow output directory
publishDir "$baseDir/output", mode: 'copy'
input:
file wordlines from tolines
file wordlines from cleanlines
output:
file "${wordlines.name}.wordcount"
......
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