-
-
Save mwoodbri/322369519b5dfd0195e3645d82bfe909 to your computer and use it in GitHub Desktop.
Nextflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
executor.$pbspro.queueSize = 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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() } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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() } | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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