Skip to content

Commit

Permalink
refactor: Change prefixes for recombination processes
Browse files Browse the repository at this point in the history
  • Loading branch information
jvfe committed Jul 19, 2023
1 parent a5db9a6 commit 941e336
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ process {

// Recombination
withName: VERTICALL_PAIRWISE {
ext.prefix = { "cluster_${cluster}" }
publishDir = [
path: { "${params.outdir}/recombination/verticall" },
mode: params.publish_dir_mode,
Expand All @@ -429,7 +430,7 @@ process {
withName: GUBBINS {
ext.args = '--tree-builder fasttree'
publishDir = [
path: { "${params.outdir}/recombination/gubbins/${cluster}" },
path: { "${params.outdir}/recombination/gubbins/cluster_${cluster}" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
Expand Down
8 changes: 4 additions & 4 deletions modules/local/ska.nf
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ process SKA2 {
path assembly_files

output:
tuple val(cluster), path("${cluster}_alignment.aln"), emit: aln
path "versions.yml" , emit: versions
tuple val(cluster), path("${cluster}.aln"), emit: aln
path "versions.yml" , emit: versions

when:
task.ext.when == null || task.ext.when
Expand All @@ -27,7 +27,7 @@ process SKA2 {
$args \\
--input $assemblies \\
--reference $reference \\
--out ${cluster}_alignment.aln \\
--out ${cluster}.aln \\
--threads $task.cpus
cat <<-END_VERSIONS > versions.yml
Expand All @@ -38,7 +38,7 @@ process SKA2 {
stub:
def VERSION = '3.3.0'
"""
touch ${cluster}_alignment.aln
touch ${cluster}.aln
cat <<-END_VERSIONS > versions.yml
"${task.process}":
Expand Down

0 comments on commit 941e336

Please sign in to comment.