Skip to content

Commit cd1f242

Browse files
authored
Merge pull request #475 from nf-core/nftest-implementation
2 parents 72c657f + 779ce9a commit cd1f242

23 files changed

+6246
-23
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ testing/
77
testing*
88
*.pyc
99
null/
10+
11+
.nf-test*

docs/output.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ Once installed, open IGV, go to `File > Open Session` and select the `igv_sessio
321321
- `genome/`
322322
- A number of genome-specific files are generated by the pipeline in order to aid in the filtering of the data, and because they are required by standard tools such as BEDTools. These can be found in this directory along with the genome fasta file which is required by IGV. If using a genome from AWS iGenomes and if it exists a `README.txt` file containing information about the annotation version will also be saved in this directory.
323323
- `genome/index/`
324-
325324
- `bwa/`: Directory containing BWA indices.
326325
- `bowtie2/`: Directory containing BOWTIE2 indices.
327326
- `chromap/`: Directory containing Chromap indices.

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
}

nf-test.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ config {
1919

2020
// load the necessary plugins
2121
plugins {
22-
22+
2323
}
2424
}

ro-crate-metadata.json

Lines changed: 28 additions & 15 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)