Skip to content

Commit

Permalink
fixed nxtflw 21.10 incompatibility, fixes #30
Browse files Browse the repository at this point in the history
  • Loading branch information
replikation committed Feb 16, 2022
1 parent 7e68326 commit 7b08e89
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ println "\033[0;33mporeCov requires at least Nextflow version " + XX + "." + YY
exit 1
}

workflow { //start of the workflow

//*************************************************
// STEP 0 Loading modules and workflow profile error handling
//*************************************************
Expand Down Expand Up @@ -195,11 +195,13 @@ workflow { //start of the workflow
include {parser_bin} from './modules/parser'params(output: params.output)
}
include {readme_output} from './modules/readme_output'params(output: params.output)
include {test} from './modules/test_data_dll'

//*************************************************
// STEP 1 Assemble using hybrid method
//*************************************************

workflow { //start of the workflow
if (params.modular=="full" | params.modular=="assemble" | params.modular=="assem-class" | params.modular=="assem-annot") { //only do the step one if called
if (params.assembler!='metaflye' && params.assembler!='metaspades') { //check if the assembler parameter is correct
exit 1, "--assembler: ${params.assembler}. Should be 'metaflye' or 'metaspades' (default: metaflye)"}
Expand All @@ -208,7 +210,7 @@ workflow { //start of the workflow

// DATA INPUT TEST
if (workflow.profile.contains('test')) {
include {test} from './modules/test_data_dll'

test()
illumina_input_ch = test.out[0]
ont_input_ch = test.out[1]
Expand Down

0 comments on commit 7b08e89

Please sign in to comment.