Skip to content

Commit

Permalink
test: Add missing local stubs
Browse files Browse the repository at this point in the history
Co-authored-by: FriederikeHanssen <[email protected]>
Co-authored-by: maxulysse <[email protected]>
  • Loading branch information
3 people committed Dec 9, 2024
1 parent 0dfbf14 commit 5508adb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions modules/local/create_intervals_bed/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,18 @@ process CREATE_INTERVALS_BED {
END_VERSIONS
"""
}

stub:
def prefix = task.ext.prefix ?: "${intervals.baseName}"
def metrics = task.ext.metrics ?: "${prefix}.metrics"
// def prefix_basename = prefix.substring(0, prefix.lastIndexOf("."))

"""
touch ${prefix}.bed
cat <<-END_VERSIONS > versions.yml
"${task.process}":
gawk: \$(awk -Wversion | sed '1!d; s/.*Awk //; s/,.*//')
END_VERSIONS
"""
}
14 changes: 14 additions & 0 deletions modules/nf-core/gatk4/intervallisttobed/main.nf

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

0 comments on commit 5508adb

Please sign in to comment.