Skip to content

Commit

Permalink
Additional optional output to homer/annotatepeaks (nf-core#3667)
Browse files Browse the repository at this point in the history
* add optional stats output for use with the -annStats parameter (to be provided with ext.args)

* Update meta.yml

* add additional stats output to annotatepeaks test

---------

Co-authored-by: Edmund Miller <edmund.a.miller@gmail.com>
  • Loading branch information
2 people authored and limrp committed Jul 28, 2023
1 parent aae7de5 commit e84144d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
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

0 comments on commit e84144d

Please sign in to comment.