Skip to content

Instantly share code, notes, and snippets.

@mwoodbri
Last active July 22, 2020 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwoodbri/322369519b5dfd0195e3645d82bfe909 to your computer and use it in GitHub Desktop.
Save mwoodbri/322369519b5dfd0195e3645d82bfe909 to your computer and use it in GitHub Desktop.
Nextflow
executor.$pbspro.queueSize = 50
#!/usr/bin/env nextflow
params.str = 'Hello world!'
process splitLetters {
executor = 'local'
output:
file 'chunk_*' into letters
"""
printf '${params.str}' | split -b 6 - chunk_
"""
}
process convertToUpper {
label = 'throughput'
input:
file x from letters.flatten()
output:
stdout result
"""
cat $x | tr '[a-z]' '[A-Z]'
"""
}
result.view { it.trim() }
#!/usr/bin/env nextflow
params.str = 'Hello world!'
process splitLetters {
+ executor = 'local'
+
output:
file 'chunk_*' into letters
"""
printf '${params.str}' | split -b 6 - chunk_
"""
}
process convertToUpper {
+
+ label = 'throughput'
input:
file x from letters.flatten()
output:
stdout result
"""
cat $x | tr '[a-z]' '[A-Z]'
"""
}
result.view { it.trim() }
#!/usr/bin/env bash
#PBS -l walltime=00:30:00,select=1:ncpus=1:mem=1g
cd $PBS_O_WORKDIR
module load nextflow/20.01.0
nextflow run tutorial.nf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment