Skip to content

Commit

Permalink
Merge pull request #1612 from FriederikeHanssen/empty_outdirs
Browse files Browse the repository at this point in the history
Remove empty outdirs
  • Loading branch information
FriederikeHanssen authored Aug 5, 2024
2 parents b7d79bf + e48d9bd commit fc7b47e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Loametjåhkkå is another one of the main peaks of the Pårte massif.
- [#1570](https://github.com/nf-core/sarek/pull/1570) - Remove duplicated notes in FASTQC output docs
- [#1596](https://github.com/nf-core/sarek/pull/1596) - Fix haplotypecaller tests
- [#1597](https://github.com/nf-core/sarek/pull/1597) - Fix deepvariant tests
- [#1612](https://github.com/nf-core/sarek/pull/1612) - Remove empty output directories

### Removed

Expand Down
8 changes: 4 additions & 4 deletions conf/modules/prepare_genome.config
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ process {
ext.when = { params.tools && params.tools.split(',').contains('cnvkit') }
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/reference/cnvkit" },
path: { "${params.outdir}/reference" },
pattern: "*{bed}",
saveAs: { params.save_reference || params.build_only_index ? it : null }
saveAs: { params.save_reference || params.build_only_index ? "cnvkit/${it}" : null }
]
}

Expand All @@ -50,9 +50,9 @@ process {
ext.when = { params.tools && params.tools.split(',').contains('cnvkit') && !params.cnvkit_reference }
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/reference/cnvkit" },
path: { "${params.outdir}/reference" },
pattern: "*{cnn}",
saveAs: { params.save_reference || params.build_only_index ? it : null }
saveAs: { params.save_reference || params.build_only_index ? "cnvkit/${it}" : null }
]
}

Expand Down
12 changes: 6 additions & 6 deletions conf/modules/prepare_intervals.config
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,28 @@ process {
withName: 'CREATE_INTERVALS_BED' {
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/reference/intervals" },
path: { "${params.outdir}/reference" },
pattern: "*bed",
saveAs: { params.save_reference || params.build_only_index ? it : null }
saveAs: { params.save_reference || params.build_only_index ? "intervals/${it}" : null }
]
}

withName: 'GATK4_INTERVALLISTTOBED' {
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/reference/intervals" },
path: { "${params.outdir}/reference" },
pattern: "*bed",
saveAs: { params.save_reference || params.build_only_index ? it : null }
saveAs: { params.save_reference || params.build_only_index ? "intervals/${it}" : null }
]
}

withName: 'TABIX_BGZIPTABIX_INTERVAL_SPLIT|TABIX_BGZIPTABIX_INTERVAL_COMBINED' {
ext.prefix = {"${meta.id}"}
publishDir = [
mode: params.publish_dir_mode,
path: { "${params.outdir}/reference/intervals" },
path: { "${params.outdir}/reference" },
pattern: "*bed.gz",
saveAs: { params.save_reference || params.build_only_index ? it : null }
saveAs: { params.save_reference || params.build_only_index ? "intervals/${it}" : null }
]
}
}
4 changes: 2 additions & 2 deletions conf/modules/trimming.config
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ process {
pattern: "*.{html,json,log}"
],
[
path: { "${params.outdir}/preprocessing/fastp/${meta.sample}/" },
path: { "${params.outdir}/preprocessing/" },
mode: params.publish_dir_mode,
pattern: "*.fastp.fastq.gz",
saveAs: { params.save_trimmed || params.save_split_fastqs ? it : null }
saveAs: { params.save_trimmed || params.save_split_fastqs ? "fastp/${meta.sample}/${it}" : null }
]
]
}
Expand Down
4 changes: 2 additions & 2 deletions subworkflows/local/bam_variant_calling_cnvkit/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ workflow BAM_VARIANT_CALLING_CNVKIT {

versions = versions.mix(CNVKIT_BATCH.out.versions)
versions = versions.mix(CNVKIT_GENEMETRICS.out.versions)
versions = versions.mix( CNVKIT_CALL.out.versions)
versions = versions.mix( CNVKIT_EXPORT.out.versions)
versions = versions.mix(CNVKIT_CALL.out.versions)
versions = versions.mix(CNVKIT_EXPORT.out.versions)
emit:
cnv_calls_raw = CNVKIT_CALL.out.cns // channel: [ meta, cns ]
cnv_calls_export = CNVKIT_EXPORT.out.output // channel: [ meta, export_format ]
Expand Down

0 comments on commit fc7b47e

Please sign in to comment.