Skip to content

Commit

Permalink
a test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tuzov committed Mar 27, 2023
1 parent fe12e93 commit 132baf2
Showing 1 changed file with 29 additions and 12 deletions.
41 changes: 29 additions & 12 deletions main.nf
Original file line number Diff line number Diff line change
@@ -1,25 +1,42 @@
userinput = params.inputstring
process short1min {

process splitLetters {
output:
path 'chunk_*'
"""
echo "job_name: short1min; starts"
sleep 60
echo "job_name: short1min; done"
"""
}

process short2min {

"""
echo "job_name: short2min; starts"
sleep 120
echo "job_name: short2min; done"
"""
}

process long3min {

"""
printf '${userinput}' | split -b 6 - chunk_
echo "job_name: long3min"
sleep 180
echo "job_name: short2min; done"
"""
}

process convertToUpper {
input:
path x
output:
stdout
process long6min {

"""
cat $x | tr '[a-z]' '[A-Z]'
echo "job_name: long6min; starts"
sleep 360
echo "job_name: long6min; done"
"""
}

workflow {
splitLetters | flatten | convertToUpper | view { it.trim() }
short1min()
short2min()
long3min()
long6min()
}

0 comments on commit 132baf2

Please sign in to comment.