Skip to content

Commit 623eb45

Browse files
update csvtk_join
1 parent 6bf32f1 commit 623eb45

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

conf/modules.config

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -370,19 +370,26 @@ process {
370370
}
371371

372372
withName: CSVTK_JOIN {
373-
ext.prefix = { "${meta.id}.annotated" }
373+
ext.prefix = {
374+
def method = meta.params.differential_method
375+
def prefix = "${meta.id}_${method}.annotated"
376+
return prefix
377+
}
378+
ext.args = { [
379+
"--fields ${meta.params.features_id_col}",
380+
"--left-join",
381+
"-t",
382+
"-k",
383+
"-T",
384+
"-D \$'\t'"
385+
].join(' ').trim() }
374386
publishDir = [
375387
[
376388
path: { "${params.outdir}/tables/differential_annotated" },
377389
mode: params.publish_dir_mode,
378390
pattern: '*.tsv'
379391
]
380392
]
381-
ext.args = { [
382-
"--fields ${meta.params.features_id_col}",
383-
"--left-join",
384-
"-t"
385-
].join(' ').trim() }
386393
}
387394
// ==================================================================================
388395
// functional enrichment modules

0 commit comments

Comments
 (0)