Skip to content

Commit

Permalink
Merge pull request #190 from danilodileo/eukulele-download
Browse files Browse the repository at this point in the history
Eukulele download module removed
  • Loading branch information
erikrikarddaniel authored Oct 6, 2023
2 parents 815c763 + 0bcdbbe commit 11ec34c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 65 deletions.
9 changes: 0 additions & 9 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -348,15 +348,6 @@ process {
]
}

withName: EUKULELE_DOWNLOAD {
ext.when = { db }
publishDir = [
path: { "${params.eukulele_dbpath}/" },
mode: 'copy',
pattern: "*"
]
}

withName: EUKULELE_SEARCH {
publishDir = [
path: { "${params.outdir}/eukulele" },
Expand Down
40 changes: 0 additions & 40 deletions modules/local/eukulele/download.nf

This file was deleted.

6 changes: 3 additions & 3 deletions modules/local/eukulele/search.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ process EUKULELE_SEARCH {
tag "$meta.id"
label 'process_high'

conda "bioconda::eukulele=2.0.3"
conda "bioconda::eukulele=2.0.5"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/eukulele:2.0.3--pyh723bec7_0' :
'biocontainers/eukulele:2.0.3--pyh723bec7_0' }"
'https://depot.galaxyproject.org/singularity/eukulele:2.0.5--pyh723bec7_0' :
'biocontainers/eukulele:2.0.5--pyh723bec7_0' }"

input:
tuple val(meta), path(fasta), val(dbname), path(eukdb)
Expand Down
15 changes: 2 additions & 13 deletions subworkflows/local/eukulele.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
//

include { EUKULELE_SEARCH } from '../../modules/local/eukulele/search'
include { EUKULELE_DOWNLOAD } from '../../modules/local/eukulele/download'
include { FORMAT_TAX } from '../../modules/local/format_tax'
include { SUM_TAXONOMY } from '../../modules/local/sum_taxonomy'

Expand All @@ -16,22 +15,12 @@ workflow SUB_EUKULELE {
main:
ch_versions = Channel.empty()


EUKULELE_DOWNLOAD ( eukulele.filter { it[2] }.map { [ it[2], it[3] ] } )
ch_download = EUKULELE_DOWNLOAD.out.db

Channel.empty()
.mix ( EUKULELE_DOWNLOAD.out.db )
.mix(eukulele.filter{ ! it[2] }.map { [ [], it[3] ] } )
.merge( eukulele.map{ [ it[0], it[1] ] } )
.map { [ [ id: "${it[2].id}.${it[0]}" ], it[3], it[0], it[1] ] }
.set { ch_eukulele }
EUKULELE_SEARCH( ch_eukulele )
EUKULELE_SEARCH( eukulele )

FORMAT_TAX( EUKULELE_SEARCH.out.taxonomy_estimation.map { [ it[0], it[1] ] } )

FORMAT_TAX.out.tax
.join(ch_eukulele)
.join(eukulele)
.map { [ it[0], it[3], it[1] ] }
.set { ch_sum_taxonomy }

Expand Down
1 change: 1 addition & 0 deletions workflows/metatdenovo.nf
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ workflow METATDENOVO {
.set { ch_eukulele }
SUB_EUKULELE( ch_eukulele, ch_fcs_for_summary )
ch_taxonomy_summary = SUB_EUKULELE.out.taxonomy_summary.collect().map { it[1] }
ch_versions = ch_versions.mix(SUB_EUKULELE.out.versions)
ch_merge_tables
.combine( ch_taxonomy_summary )
.set { ch_merge_tables }
Expand Down

0 comments on commit 11ec34c

Please sign in to comment.