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

Additional optional output to homer/annotatepeaks #3667

Merged
merged 4 commits into from
Jul 26, 2023
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 modules/nf-core/homer/annotatepeaks/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ process HOMER_ANNOTATEPEAKS {

output:
tuple val(meta), path("*annotatePeaks.txt"), emit: txt
tuple val(meta), path("*annStats.txt"), emit: stats, optional: true
path "versions.yml" , emit: versions

when:
Expand Down
4 changes: 4 additions & 0 deletions modules/nf-core/homer/annotatepeaks/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ output:
type: file
description: The annotated peaks
pattern: "*annotatePeaks.txt"
- annotation_stats:
type: file
description: the annStats file output from -annStats parameter
pattern: "*annStats.txt"
- versions:
type: file
description: File containing software versions
Expand Down
1 change: 1 addition & 0 deletions tests/modules/nf-core/homer/annotatepeaks/nextflow.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
process {

publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }
ext.args = {"-annStats ${meta.id}.annStats.txt"}

}
1 change: 1 addition & 0 deletions tests/modules/nf-core/homer/annotatepeaks/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
- homer/annotatepeaks
files:
- path: output/homer/test.annotatePeaks.txt
- path: output/homer/test.annStats.txt
Loading