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

Workflow output definition #1227

Draft
wants to merge 17 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 10 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
166 changes: 166 additions & 0 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,172 @@ workflow {
)
}

output {
directory params.outdir
mode params.publish_dir_mode

'genome' {
enabled params.save_reference
}

'genome/index' {
enabled params.save_reference
}

'star_salmon/intermeds/' {
path 'star_salmon'
enabled params.save_align_intermeds || params.save_umi_intermeds
}

'star_salmon/samtools_stats/intermeds/' {
path 'star_salmon/samtools_stats'
enabled params.save_align_intermeds || params.save_umi_intermeds
}

'star_salmon/umitools/log/intermeds/' {
path 'star_salmon/umitools/log'
enabled params.save_align_intermeds || params.save_umi_intermeds
}

'bigwig' {
path "${params.aligner}/bigwig"
}

// modules/local/dupradar
'dupradar' {
path "${params.aligner}/dupradar"
}

// modules/nf-core/bbmap/bbsplit
'bbsplit/intermeds/' {
path 'bbsplit'
enabled params.save_bbsplit_reads
}

// modules/nf-core/cat/fastq
'cat/fastq' {
path 'fastq'
enabled params.save_merged_fastq
}

// modules/nf-core/multiqc
'multiqc' {
path params.skip_alignment ? 'multiqc' : "multiqc/${params.aligner}"
}

// modules/nf-core/preseq/lcextrap
'preseq' {
path "${params.aligner}/preseq"
}

'preseq/log' {
path "${params.aligner}/preseq/log"
}

// modules/nf-core/qualimap/rnaseq
'qualimap' {
path "${params.aligner}/qualimap"
}

// modules/nf-core/sortmerna
'sortmerna/intermeds/' {
path 'sortmerna'
enabled params.save_non_ribo_reads
}

// modules/nf-core/stringtie/stringtie
'stringtie' {
path "${params.aligner}/stringtie"
}

// modules/nf-core/subread/featurecounts
'featurecounts' {
path "${params.aligner}/featurecounts"
}

// subworkflows/local/align_star
// 'star_salmon/intermeds/' {
// path 'star_salmon'
// enabled params.save_align_intermeds
// }

'star_salmon/unmapped/' {
enabled params.save_unaligned
}

// subworkflows/local/quantify_rsem
'star_rsem/intermeds/' {
path 'star_rsem'
enabled params.save_align_intermeds
}

// subworkflows/nf-core/bam_markduplicates_picard
'picard/' {
path params.aligner
}

'picard/metrics/' {
path "${params.aligner}/picard_metrics"
}

'picard/samtools_stats/' {
path "${params.aligner}/samtools_stats"
}

// subworkflows/nf-core/bam_rseqc
'rseqc/bam_stat/' {
path "${params.aligner}/rseqc/bam_stat"
}
'rseqc/infer_experiment/' {
path "${params.aligner}/rseqc/infer_experiment"
}
'rseqc/junction_annotation/' {
path "${params.aligner}/rseqc/junction_annotation"
}
'rseqc/junction_saturation/' {
path "${params.aligner}/rseqc/junction_saturation"
}
'rseqc/read_duplication/' {
path "${params.aligner}/rseqc/read_duplication"
}
'rseqc/read_distribution/' {
path "${params.aligner}/rseqc/read_distribution"
}
'rseqc/inner_distance/' {
path "${params.aligner}/rseqc/inner_distance"
}
'rseqc/tin/' {
path "${params.aligner}/rseqc/tin"
}

// subworkflows/nf-core/fastq_align_hisat2
'hisat2/intermeds/' {
path 'hisat2'
enabled params.save_align_intermeds
}

'hisat2/unmapped/' {
enabled params.save_unaligned
}

// subworkflows/nf-core/fastq_fastqc_umitools_fastp
// subworkflows/nf-core/fastq_fastqc_umitools_trimgalore
'fastp/intermeds/' {
path 'fastp'
enabled params.save_trimmed
}

'trimgalore/intermeds/' {
path 'trimgalore'
enabled params.save_trimmed
}

'umitools/intermeds/' {
path 'umitools'
enabled params.save_umi_intermeds
}
}

/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
THE END
Expand Down
3 changes: 0 additions & 3 deletions modules/local/bedtools_genomecov/nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ if (!params.skip_alignment && !params.skip_bigwig) {
process {
withName: 'BEDTOOLS_GENOMECOV' {
ext.args = '-split -du'
publishDir = [
enabled: false
]
}
}
}
10 changes: 10 additions & 0 deletions modules/local/deseq2_qc/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ process DESEQ2_QC {
path "size_factors" , optional:true, emit: size_factors
path "versions.yml" , emit: versions

publish:
pdf >> 'deseq2'
bentsherman marked this conversation as resolved.
Show resolved Hide resolved
rdata >> 'deseq2'
pca_txt >> 'deseq2'
pca_multiqc >> 'deseq2'
dists_txt >> 'deseq2'
dists_multiqc >> 'deseq2'
log >> 'deseq2'
size_factors >> 'deseq2'

when:
task.ext.when == null || task.ext.when

Expand Down
4 changes: 4 additions & 0 deletions modules/local/dupradar/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ process DUPRADAR {
tuple val(meta), path("*_mqc.txt"), emit: multiqc
path "versions.yml" , emit: versions

publish:
pdf >> 'dupradar'
txt >> 'dupradar'

when:
task.ext.when == null || task.ext.when

Expand Down
35 changes: 0 additions & 35 deletions modules/local/dupradar/nextflow.config

This file was deleted.

3 changes: 3 additions & 0 deletions modules/local/multiqc_custom_biotype/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ process MULTIQC_CUSTOM_BIOTYPE {
tuple val(meta), path("*.tsv"), emit: tsv
path "versions.yml" , emit: versions

publish:
tsv >> 'featurecounts'

when:
task.ext.when == null || task.ext.when

Expand Down
13 changes: 0 additions & 13 deletions modules/local/multiqc_custom_biotype/nextflow.config

This file was deleted.

13 changes: 0 additions & 13 deletions modules/nf-core/bbmap/bbsplit/nextflow.config

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions modules/nf-core/cat/fastq/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions modules/nf-core/cat/fastq/nextflow.config

This file was deleted.

5 changes: 5 additions & 0 deletions modules/nf-core/multiqc/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions modules/nf-core/multiqc/nextflow.config

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions modules/nf-core/preseq/lcextrap/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions modules/nf-core/preseq/lcextrap/nextflow.config

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions modules/nf-core/qualimap/rnaseq/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions modules/nf-core/qualimap/rnaseq/nextflow.config

This file was deleted.

Loading