Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions modules/nf-core/deepvariant/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,16 @@ The processing stages used by the subworkflow are implemented as module subcomma
"""
prefix = task.ext.prefix ?: "${meta.id}"
assert false: deprecation_message
stub:
"""
echo | gzip > ${prefix}.g.vcf.gz
touch ${prefix}.vcf.gz.tbi
echo | gzip > ${prefix}.vcf.gz
touch ${prefix}.g.vcf.gz.tbi
cat <<-END_VERSIONS > versions.yml
"${task.process}":
deepvariant: \$(echo "stub")
END_VERSIONS
"""

}
11 changes: 11 additions & 0 deletions modules/nf-core/ectyper/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,15 @@ process ECTYPER {
ectyper: \$(echo \$(ectyper --version 2>&1) | sed 's/.*ectyper //; s/ .*\$//')
END_VERSIONS
"""
stub:
"""
touch ectyper_stub.tsv
touch ectyper_stub.log
touch ectyper_stub.txt
cat <<-END_VERSIONS > versions.yml
"${task.process}":
ectyper: \$(echo \$(ectyper --version 2>&1) | sed 's/.*ectyper //; s/ .*\$//')
END_VERSIONS
"""

}
9 changes: 9 additions & 0 deletions modules/nf-core/emmtyper/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,13 @@ process EMMTYPER {
emmtyper: \$( echo \$(emmtyper --version 2>&1) | sed 's/^.*emmtyper v//' )
END_VERSIONS
"""
stub:
"""
touch emmtyper_stub.tsv
cat <<-END_VERSIONS > versions.yml
"${task.process}":
emmtyper: \$( echo \$(emmtyper --version 2>&1) | sed 's/^.*emmtyper v//' )
END_VERSIONS
"""

}
9 changes: 9 additions & 0 deletions modules/nf-core/fastqscan/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,13 @@ process FASTQSCAN {
fastqscan: \$( echo \$(fastq-scan -v 2>&1) | sed 's/^.*fastq-scan //' )
END_VERSIONS
"""
stub:
"""
touch fastqscan_stub.json
cat <<-END_VERSIONS > versions.yml
"${task.process}":
fastqscan: \$( echo \$(fastq-scan -v 2>&1) | sed 's/^.*fastq-scan //' )
END_VERSIONS
"""

}
9 changes: 9 additions & 0 deletions modules/nf-core/fasttree/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,13 @@ process FASTTREE {
fasttree: \$(fasttree -help 2>&1 | head -1 | sed 's/^FastTree \\([0-9\\.]*\\) .*\$/\\1/')
END_VERSIONS
"""
stub:
"""
touch fasttree_stub.tre
cat <<-END_VERSIONS > versions.yml
"${task.process}":
fasttree: \$(fasttree -help 2>&1 | head -1 | sed 's/^FastTree \\([0-9\\.]*\\) .*\$/\\1/')
END_VERSIONS
"""

}
9 changes: 9 additions & 0 deletions modules/nf-core/ffq/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,13 @@ process FFQ {
ffq: \$(echo \$(ffq --help 2>&1) | sed 's/^.*ffq //; s/: A command.*\$//' )
END_VERSIONS
"""
stub:
"""
touch ffq_stub.json
cat <<-END_VERSIONS > versions.yml
"${task.process}":
ffq: \$(echo \$(ffq --help 2>&1) | sed 's/^.*ffq //; s/: A command.*\$//' )
END_VERSIONS
"""

}
10 changes: 10 additions & 0 deletions modules/nf-core/filtlong/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,14 @@ process FILTLONG {
2>| >(tee ${prefix}.log >&2) \\
| gzip -n > ${prefix}.fastq.gz
"""
stub:
"""
echo | gzip > filtlong_stub.fastq.gz
touch filtlong_stub.log
cat <<-END_VERSIONS > versions.yml
"${task.process}":
filtlong: \$(echo "stub")
END_VERSIONS
"""

}
13 changes: 13 additions & 0 deletions modules/nf-core/genrich/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,17 @@ process GENRICH {
genrich: \$(echo \$(Genrich --version 2>&1) | sed 's/^Genrich, version //; s/ .*\$//')
END_VERSIONS
"""
stub:
"""
touch genrich_stub.pvalues.bedGraph
touch genrich_stub.duplicates.txt
touch genrich_stub.pileup.bedGraph
touch genrich_stub.intervals.bed
touch genrich_stub.narrowPeak
cat <<-END_VERSIONS > versions.yml
"${task.process}":
genrich: \$(echo \$(Genrich --version 2>&1) | sed 's/^Genrich, version //; s/ .*\$//')
END_VERSIONS
"""

}
10 changes: 10 additions & 0 deletions modules/nf-core/islandpath/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,14 @@ process ISLANDPATH {
islandpath: $VERSION
END_VERSIONS
"""
stub:
"""
touch islandpath_stub.gff
touch Dimob.log
cat <<-END_VERSIONS > versions.yml
"${task.process}":
islandpath: $VERSION
END_VERSIONS
"""

}
10 changes: 10 additions & 0 deletions modules/nf-core/kofamscan/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,14 @@ process KOFAMSCAN {
kofamscan: \$(echo \$(exec_annotation --version 2>&1) | sed 's/^.*exec_annotation //;')
END_VERSIONS
"""
stub:
"""
touch kofamscan_stub.tsv
touch kofamscan_stub.txt
cat <<-END_VERSIONS > versions.yml
"${task.process}":
kofamscan: \$(echo \$(exec_annotation --version 2>&1) | sed 's/^.*exec_annotation //;')
END_VERSIONS
"""

}
9 changes: 9 additions & 0 deletions modules/nf-core/maltextract/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,13 @@ process MALTEXTRACT {
maltextract: \$(MaltExtract --help | head -n 2 | tail -n 1 | sed 's/MaltExtract version//')
END_VERSIONS
"""
stub:
"""
touch results
cat <<-END_VERSIONS > versions.yml
"${task.process}":
maltextract: \$(MaltExtract --help | head -n 2 | tail -n 1 | sed 's/MaltExtract version//')
END_VERSIONS
"""

}
9 changes: 9 additions & 0 deletions modules/nf-core/medaka/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,13 @@ process MEDAKA {
medaka: \$( medaka --version 2>&1 | sed 's/medaka //g' )
END_VERSIONS
"""
stub:
"""
echo | gzip > medaka_stub.fa.gz
cat <<-END_VERSIONS > versions.yml
"${task.process}":
medaka: \$( medaka --version 2>&1 | sed 's/medaka //g' )
END_VERSIONS
"""

}
8 changes: 8 additions & 0 deletions modules/nf-core/mlst/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,13 @@ process MLST {
mlst: \$( echo \$(mlst --version 2>&1) | sed 's/mlst //' )
END_VERSIONS
"""
stub:
"""
touch mlst_stub.tsv
cat <<-END_VERSIONS > versions.yml
"${task.process}":
mlst: \$( echo \$(mlst --version 2>&1) | sed 's/mlst //' )
END_VERSIONS
"""

}
10 changes: 10 additions & 0 deletions modules/nf-core/mygene/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,14 @@ process MYGENE {

script:
template "mygene.py"
stub:
"""
touch mygene_stub.gmt
touch mygene_stub.tsv
cat <<-END_VERSIONS > versions.yml
"${task.process}":
mygene: \$(echo "stub")
END_VERSIONS
"""

}
21 changes: 21 additions & 0 deletions modules/nf-core/ncbigenomedownload/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,25 @@ process NCBIGENOMEDOWNLOAD {
$groups

"""
stub:
"""
echo | gzip > ncbigenomedownload_stub_genomic.fna.gz
echo | gzip > ncbigenomedownload_stub_cds_from_genomic.fna.gz
echo | gzip > ncbigenomedownload_stub_protein.faa.gz
echo | gzip > ncbigenomedownload_stub_rna_from_genomic.fna.gz
touch ncbigenomedownload_stub_assembly_report.txt
echo | gzip > ncbigenomedownload_stub_rna.fna.gz
echo | gzip > ncbigenomedownload_stub_wgsmaster.gbff.gz
echo | gzip > ncbigenomedownload_stub_feature_table.txt.gz
echo | gzip > ncbigenomedownload_stub_protein.gpff.gz
echo | gzip > ncbigenomedownload_stub_genomic.gff.gz
touch ncbigenomedownload_stub_assembly_stats.txt
echo | gzip > ncbigenomedownload_stub_rm.out.gz
echo | gzip > ncbigenomedownload_stub_genomic.gbff.gz
cat <<-END_VERSIONS > versions.yml
"${task.process}":
ncbigenomedownload: \$(echo "stub")
END_VERSIONS
"""

}
10 changes: 10 additions & 0 deletions modules/nf-core/optitype/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,14 @@ process OPTITYPE {
optitype: \$(cat \$(which OptiTypePipeline.py) | grep -e "Version:" | sed -e "s/Version: //g")
END_VERSIONS
"""
stub:
"""
touch ${prefix}/optitype_stub.pdf
touch ${prefix}/optitype_stub.tsv
cat <<-END_VERSIONS > versions.yml
"${task.process}":
optitype: \$(cat \$(which OptiTypePipeline.py) | grep -e "Version:" | sed -e "s/Version: //g")
END_VERSIONS
"""

}
9 changes: 9 additions & 0 deletions modules/nf-core/pairix/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,13 @@ process PAIRIX {
pairix: \$(echo \$(pairix --help 2>&1) | sed 's/^.*Version: //; s/Usage.*\$//')
END_VERSIONS
"""
stub:
"""
touch pairix_stub.px2
cat <<-END_VERSIONS > versions.yml
"${task.process}":
pairix: \$(echo \$(pairix --help 2>&1) | sed 's/^.*Version: //; s/Usage.*\$//')
END_VERSIONS
"""

}
16 changes: 16 additions & 0 deletions modules/nf-core/plasmidid/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,20 @@ process PLASMIDID {
plasmidid: \$(echo \$(plasmidID --version 2>&1))
END_VERSIONS
"""
stub:
"""
touch ${prefix}/data/
touch ${prefix}/database/
touch ${prefix}/plasmidid_stubfinal_results.tab
touch ${prefix}/images/
touch ${prefix}/logs/
touch ${prefix}/fasta_files/
touch ${prefix}/plasmidid_stubfinal_results.html
touch ${prefix}/kmer/
cat <<-END_VERSIONS > versions.yml
"${task.process}":
plasmidid: \$(echo \$(plasmidID --version 2>&1))
END_VERSIONS
"""

}
12 changes: 12 additions & 0 deletions modules/nf-core/prinseqplusplus/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,16 @@ process PRINSEQPLUSPLUS {
END_VERSIONS
"""
}
stub:
"""
echo | gzip > prinseqplusplus_stub_bad_outprinseqplusplus_stub.fastq.gz
echo | gzip > prinseqplusplus_stub_good_outprinseqplusplus_stub.fastq.gz
echo | gzip > prinseqplusplus_stub_single_outprinseqplusplus_stub.fastq.gz
touch prinseqplusplus_stub.log
cat <<-END_VERSIONS > versions.yml
"${task.process}":
prinseqplusplus: \$(echo \$(prinseq++ --version | cut -f 2 -d ' ' ))
END_VERSIONS
"""

}
10 changes: 10 additions & 0 deletions modules/nf-core/pycoqc/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,14 @@ process PYCOQC {
pycoqc: \$(pycoQC --version 2>&1 | sed 's/^.*pycoQC v//; s/ .*\$//')
END_VERSIONS
"""
stub:
"""
touch pycoqc_stub.html
touch pycoqc_stub.json
cat <<-END_VERSIONS > versions.yml
"${task.process}":
pycoqc: \$(pycoQC --version 2>&1 | sed 's/^.*pycoQC v//; s/ .*\$//')
END_VERSIONS
"""

}
9 changes: 9 additions & 0 deletions modules/nf-core/racon/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,13 @@ process RACON {
racon: \$( racon --version 2>&1 | sed 's/^.*v//' )
END_VERSIONS
"""
stub:
"""
echo | gzip > racon_stub_assembly_consensus.fasta.gz
cat <<-END_VERSIONS > versions.yml
"${task.process}":
racon: \$( racon --version 2>&1 | sed 's/^.*v//' )
END_VERSIONS
"""

}
11 changes: 11 additions & 0 deletions modules/nf-core/rapidnj/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,15 @@ process RAPIDNJ {
biopython: \$(python -c "import Bio; print(Bio.__version__)")
END_VERSIONS
"""
stub:
"""
touch rapidnj_stub.tre
touch rapidnj_stub.sth
cat <<-END_VERSIONS > versions.yml
"${task.process}":
rapidnj: $VERSION
biopython: \$(python -c "import Bio; print(Bio.__version__)")
END_VERSIONS
"""

}
9 changes: 9 additions & 0 deletions modules/nf-core/rasusa/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,13 @@ process RASUSA {
--input $reads \\
$output
"""
stub:
"""
echo | gzip > rasusa_stub.fastq.gz
cat <<-END_VERSIONS > versions.yml
"${task.process}":
rasusa: \$(echo "stub")
END_VERSIONS
"""

}
10 changes: 10 additions & 0 deletions modules/nf-core/raven/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,14 @@ process RAVEN {
# compress assembly graph
gzip -c ${prefix}.gfa > ${prefix}.gfa.gz
"""
stub:
"""
echo | gzip > raven_stub.gfa.gz
echo | gzip > raven_stub.fasta.gz
cat <<-END_VERSIONS > versions.yml
"${task.process}":
raven: \$(echo "stub")
END_VERSIONS
"""

}
11 changes: 11 additions & 0 deletions modules/nf-core/salsa2/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,15 @@ process SALSA2 {
SALSA2: $VERSION
END_VERSIONS
"""
stub:
"""
touch salsa2_stub_scaffolds_FINAL.fasta
touch salsa2_stub/salsa2_stubscaffolds_FINAL.original-coordinates.agp
touch salsa2_stub_scaffolds_FINAL.agp
cat <<-END_VERSIONS > versions.yml
"${task.process}":
SALSA2: $VERSION
END_VERSIONS
"""

}
Loading
Loading