diff --git a/conf/modules.config b/conf/modules.config index 828d99e3..a1b3b1f4 100644 --- a/conf/modules.config +++ b/conf/modules.config @@ -620,6 +620,7 @@ process { } withName: METABAT2_JGISUMMARIZEBAMCONTIGDEPTHS { + ext.args = { meta.assembler in ['FLYE', 'METAMDBG'] ? "--percentIdentity ${params.longred_percentidentity}" : '' } publishDir = [path: { "${params.outdir}/GenomeBinning/depths/contigs" }, mode: params.publish_dir_mode, pattern: '*-depth.txt.gz'] ext.prefix = { "${meta.assembler}-${meta.id}-depth" } } diff --git a/nextflow.config b/nextflow.config index faef237a..be014614 100644 --- a/nextflow.config +++ b/nextflow.config @@ -53,6 +53,7 @@ params { min_length_unbinned_contigs = 1000000 max_unbinned_contigs = 100 skip_prokka = false + longread_percentidentity = 90 // assembly options coassemble_group = false diff --git a/subworkflows/local/binning.nf b/subworkflows/local/binning.nf index 51caaeb9..c84dad1c 100644 --- a/subworkflows/local/binning.nf +++ b/subworkflows/local/binning.nf @@ -2,11 +2,11 @@ * Binning with MetaBAT2 and MaxBin2 */ -include { METABAT2_METABAT2 } from '../../modules/nf-core/metabat2/metabat2/main' -include { METABAT2_JGISUMMARIZEBAMCONTIGDEPTHS } from '../../modules/nf-core/metabat2/jgisummarizebamcontigdepths/main' -include { MAXBIN2 } from '../../modules/nf-core/maxbin2/main' -include { GUNZIP as GUNZIP_BINS } from '../../modules/nf-core/gunzip/main' -include { GUNZIP as GUNZIP_UNBINS } from '../../modules/nf-core/gunzip/main' +include { METABAT2_METABAT2 } from '../../modules/nf-core/metabat2/metabat2/main' +include { METABAT2_JGISUMMARIZEBAMCONTIGDEPTHS } from '../../modules/nf-core/metabat2/jgisummarizebamcontigdepths/main' +include { MAXBIN2 } from '../../modules/nf-core/maxbin2/main' +include { GUNZIP as GUNZIP_BINS } from '../../modules/nf-core/gunzip/main' +include { GUNZIP as GUNZIP_UNBINS } from '../../modules/nf-core/gunzip/main' include { CONVERT_DEPTHS } from '../../modules/local/convert_depths' include { ADJUST_MAXBIN2_EXT } from '../../modules/local/adjust_maxbin2_ext'