Skip to content

Commit

Permalink
stub added
Browse files Browse the repository at this point in the history
  • Loading branch information
RuthEberhardt committed Nov 29, 2024
1 parent c505b1b commit 58bd40a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
24 changes: 12 additions & 12 deletions modules/nf-core/plink/genome/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ process PLINK_GENOME {
--bed ${bed} \\
--bim ${bim} \\
--fam ${fam} \\
$args \\
--genome \\
$args \\
--threads $task.cpus \\
--out ${prefix}
Expand All @@ -36,15 +36,15 @@ process PLINK_GENOME {
END_VERSIONS
"""

stub:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
"""
touch ${prefix}.genome
cat <<-END_VERSIONS > versions.yml
"${task.process}":
plink: \$(echo \$(plink --version 2>&1) | sed 's/^PLINK v//' | sed 's/..-bit.*//' )
END_VERSIONS
"""
stub:
def prefix = task.ext.prefix ?: "${meta.id}"
"""
touch ${prefix}.genome
cat <<-END_VERSIONS > versions.yml
"${task.process}":
plink: \$(echo \$(plink --version 2>&1) | sed 's/^PLINK v//' | sed 's/..-bit.*//' )
END_VERSIONS
"""

}
5 changes: 3 additions & 2 deletions modules/nf-core/plink/genome/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ nextflow_process {
tag "plink"
tag "plink/genome"


test("plink - genome") {
when {
process {
Expand All @@ -33,7 +32,9 @@ nextflow_process {

}

test("plink - genome-stub") {
test("plink - genome - stub") {
options "-stub"

when {
process {
"""
Expand Down

0 comments on commit 58bd40a

Please sign in to comment.