Skip to content

Commit 349dec5

Browse files
committed
Fix alignments
1 parent d6cfe40 commit 349dec5

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

modules/nf-core/gtdbtk/classifywf/main.nf

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@ process GTDBTK_CLASSIFYWF {
3030
task.ext.when == null || task.ext.when
3131

3232
script:
33-
def args = task.ext.args ?: ''
33+
def args = task.ext.args ?: ''
34+
prefix = task.ext.prefix ?: "${meta.id}"
3435
def pplacer_scratch = use_pplacer_scratch_dir ? "--scratch_dir pplacer_tmp" : ""
35-
def mash_mode = mash_db ? "--mash_db ${mash_db}" : "--skip_ani_screen"
36-
prefix = task.ext.prefix ?: "${meta.id}"
37-
36+
def mash_mode = mash_db ? "--mash_db ${mash_db}" : "--skip_ani_screen"
3837
"""
3938
export GTDBTK_DATA_PATH="\$(find -L ${db} -name 'metadata' -type d -exec dirname {} \\;)"
4039

modules/nf-core/gtdbtk/gtdbtoncbimajorityvote/main.nf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ process GTDBTK_GTDBTONCBIMAJORITYVOTE {
2323
if(!bac120_metadata && !ar53_metadata) {
2424
log.error("ERROR: Neither the ar53 or bac120 metadata files were provided to gtdbtk/gtdbtoncbimajorityvote!")
2525
}
26-
def prefix = task.ext.prefix ?: "${meta.id}"
26+
def prefix = task.ext.prefix ?: "${meta.id}"
27+
bac120 = bac120_metadata ? "--bac120_metadata_file ${bac120_metadata}" : ""
28+
ar53 = ar53_metadata ? "--ar53_metadata_file ${ar53_metadata}" : ""
2729
def gtdbtk_prefix = gtdbtk_output.find { it.name =~ /summary\.tsv/}.getName() - ~/\.(bac120|ar53)\.summary\.tsv/
28-
bac120 = bac120_metadata ? "--bac120_metadata_file ${bac120_metadata}" : ""
29-
ar53 = ar53_metadata ? "--ar53_metadata_file ${ar53_metadata}" : ""
3030
"""
3131
gtdb_to_ncbi_majority_vote.py \\
3232
--gtdbtk_output_dir . \\

0 commit comments

Comments
 (0)