Skip to content

Commit 0970051

Browse files
committed
chore: Add stubs to local modules
1 parent 22ead19 commit 0970051

File tree

6 files changed

+72
-0
lines changed

6 files changed

+72
-0
lines changed

modules/local/bam_remove_orphans.nf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,15 @@ process BAM_REMOVE_ORPHANS {
4343
END_VERSIONS
4444
"""
4545
}
46+
47+
stub:
48+
prefix = task.ext.prefix ?: "${meta.id}"
49+
"""
50+
touch ${prefix}.bam
51+
52+
cat <<-END_VERSIONS > versions.yml
53+
"${task.process}":
54+
samtools: \$(echo \$(samtools --version 2>&1) | sed 's/^.*samtools //; s/Using.*\$//')
55+
END_VERSIONS
56+
"""
4657
}

modules/local/bamtools_filter.nf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,16 @@ process BAMTOOLS_FILTER {
4040
bamtools: \$(echo \$(bamtools --version 2>&1) | sed 's/^.*bamtools //; s/Part .*\$//')
4141
END_VERSIONS
4242
"""
43+
44+
stub:
45+
def prefix = task.ext.prefix ?: "${meta.id}"
46+
"""
47+
touch ${prefix}.bam
48+
49+
cat <<-END_VERSIONS > versions.yml
50+
"${task.process}":
51+
samtools: \$(echo \$(samtools --version 2>&1) | sed 's/^.*samtools //; s/Using.*\$//')
52+
bamtools: \$(echo \$(bamtools --version 2>&1) | sed 's/^.*bamtools //; s/Part .*\$//')
53+
END_VERSIONS
54+
"""
4355
}

modules/local/bedtools_genomecov.nf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,16 @@ process BEDTOOLS_GENOMECOV {
4040
bedtools: \$(bedtools --version | sed -e "s/bedtools v//g")
4141
END_VERSIONS
4242
"""
43+
44+
stub:
45+
def prefix = task.ext.prefix ?: "${meta.id}"
46+
"""
47+
touch ${prefix}.bedGraph
48+
touch ${prefix}.scale_factor.txt
49+
50+
cat <<-END_VERSIONS > versions.yml
51+
"${task.process}":
52+
bedtools: \$(bedtools --version | sed -e "s/bedtools v//g")
53+
END_VERSIONS
54+
"""
4355
}

modules/local/frip_score.nf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,16 @@ process FRIP_SCORE {
3131
samtools: \$(echo \$(samtools --version 2>&1) | sed 's/^.*samtools //; s/Using.*\$//')
3232
END_VERSIONS
3333
"""
34+
35+
stub:
36+
def prefix = task.ext.prefix ?: "${meta.id}"
37+
"""
38+
touch ${prefix}.FRiP.txt
39+
40+
cat <<-END_VERSIONS > versions.yml
41+
"${task.process}":
42+
bedtools: \$(bedtools --version | sed -e "s/bedtools v//g")
43+
samtools: \$(echo \$(samtools --version 2>&1) | sed 's/^.*samtools //; s/Using.*\$//')
44+
END_VERSIONS
45+
"""
3446
}

modules/local/multiqc.nf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,16 @@ process MULTIQC {
7171
multiqc: \$( multiqc --version | sed -e "s/multiqc, version //g" )
7272
END_VERSIONS
7373
"""
74+
75+
stub:
76+
"""
77+
mkdir -p multiqc_data
78+
touch multiqc_report.html
79+
touch multiqc_data/multiqc.log
80+
81+
cat <<-END_VERSIONS > versions.yml
82+
"${task.process}":
83+
multiqc: \$( multiqc --version | sed -e "s/multiqc, version //g" )
84+
END_VERSIONS
85+
"""
7486
}

modules/local/multiqc_custom_phantompeakqualtools.nf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,17 @@ process MULTIQC_CUSTOM_PHANTOMPEAKQUALTOOLS {
3333
r-base: \$(echo \$(R --version 2>&1) | sed 's/^.*R version //; s/ .*\$//')
3434
END_VERSIONS
3535
"""
36+
37+
stub:
38+
def prefix = task.ext.prefix ?: "${meta.id}"
39+
"""
40+
touch ${prefix}.spp_nsc_mqc.tsv
41+
touch ${prefix}.spp_rsc_mqc.tsv
42+
touch ${prefix}.spp_correlation_mqc.tsv
43+
44+
cat <<-END_VERSIONS > versions.yml
45+
"${task.process}":
46+
r-base: \$(echo \$(R --version 2>&1) | sed 's/^.*R version //; s/ .*\$//')
47+
END_VERSIONS
48+
"""
3649
}

0 commit comments

Comments
 (0)