Skip to content

Commit

Permalink
Migrated to nextflow process selectors, solved deprecation warnings (c…
Browse files Browse the repository at this point in the history
…loses #57)
  • Loading branch information
proycon committed Feb 19, 2020
1 parent 06e1321 commit 47b54db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 3 additions & 4 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ manifest {

profiles {
standard {
process.$indexer.cpus = Runtime.runtime.availableProcessors()
process.$resolver.cpus = Runtime.runtime.availableProcessors()
process.$rank.cpus = Runtime.runtime.availableProcessors()
process.$foliacorrect.cpus = Runtime.runtime.availableProcessors()
process {
withLabel: multicore { cpus = Runtime.runtime.availableProcessors() }
}
}
}

4 changes: 4 additions & 0 deletions ticcl.nf
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ process indexer {
Computes an index from anagram hashes (TICCL-indexerNT)
*/
publishDir params.outputdir, mode: 'copy', overwrite: true
label "multicore"

input:
file corpusfreqlist from corpusfreqlist_clean_forindexer //only used for naming purposes, not real input
Expand Down Expand Up @@ -335,6 +336,7 @@ alphabet_forresolver = Channel.fromPath(params.alphabet).ifEmpty("Alphabet file
process resolver {
//Resolves numerical confusions back to word form confusions using TICCL-LDcalc
publishDir params.outputdir, mode: 'copy', overwrite: true //publish the output for the end-user to see (rather than deleting this intermediate output)
label "multicore"


input:
Expand Down Expand Up @@ -377,6 +379,7 @@ process rank {
*/

publishDir params.outputdir, mode: 'copy', overwrite: true //publish the output for the end-user to see (rather than deleting this intermediate output)
label "multicore"


input:
Expand Down Expand Up @@ -492,6 +495,7 @@ process foliacorrect {
*/

publishDir params.outputdir, mode: 'copy', overwrite: true //publish the output for the end-user to see (this is the final output)
label "multicore"

input:
file folia_ocr_documents from folia_ocr_documents_forfoliacorrect.collect() //collects all files first
Expand Down

0 comments on commit 47b54db

Please sign in to comment.