Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove empty outdirs #1612

Merged
merged 3 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading