Skip to content

Commit

Permalink
chore: Remove all publishDir and cache stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Jul 31, 2024
1 parent f5f85fd commit 83842f8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
2 changes: 0 additions & 2 deletions modules/primer3_calc/main.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
process primer3_calc {
conda "primer3"
publishDir "results/${task.process}", overwrite:'true'
cache 'deep'
tag "${conf.baseName.replaceFirst(/\.primer3\$/, '')}"

input:
Expand Down
2 changes: 0 additions & 2 deletions modules/primer3_conf/main.nf
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
process primer3_conf {
publishDir "results/${task.process}", overwrite:'true'
cache 'deep'
conda "seqkit"
tag "${target.baseName.replaceFirst(/\.primer3/, '')}"

Expand Down
2 changes: 0 additions & 2 deletions modules/primer3_index/main.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
process primer3_index {
conda "genometester4"
publishDir "results/${task.process}",overwrite:'true'
cache 'deep'
tag "$fasta.baseName"

input:
Expand Down
2 changes: 0 additions & 2 deletions modules/primer3_results2fasta/main.nf
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
process primer3_results2fasta {
publishDir "results/${task.process}", overwrite:'true'
cache 'deep'
tag "$results.baseName"

input:
Expand Down
11 changes: 11 additions & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ params {
input = null
fasta = null
targetseq = null
outdir = "results"
}

docker.enabled = true
Expand Down Expand Up @@ -37,3 +38,13 @@ profiles {
plugins {
id '[email protected]'
}

process {

publishDir = [
path: { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]

}

0 comments on commit 83842f8

Please sign in to comment.