Skip to content
Merged
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
12 changes: 1 addition & 11 deletions modules/nf-core/vsearch/cluster/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ process VSEARCH_CLUSTER {
tuple val(meta), path('*.clusters.fasta*.gz') , optional: true, emit: clusters
tuple val(meta), path('*.profile.txt.gz') , optional: true, emit: profile
tuple val(meta), path('*.msa.fasta.gz') , optional: true, emit: msa
path "versions.yml" , emit: versions
tuple val("${task.process}"), val('vsearch'), eval('vsearch --version 2>&1 | sed -n "1s/.*v\\([0-9.]*\\).*/\\\\1/p"'), emit: versions_vsearch, topic: versions
Comment thread
LouisLeNezet marked this conversation as resolved.

when:
task.ext.when == null || task.ext.when
Expand Down Expand Up @@ -67,11 +67,6 @@ process VSEARCH_CLUSTER {
else
samtools view -T $fasta -S -b ${prefix}.${out_ext} > ${prefix}.bam
fi

cat <<-END_VERSIONS > versions.yml
"${task.process}":
vsearch: \$(vsearch --version 2>&1 | head -n 1 | sed 's/vsearch //g' | sed 's/,.*//g' | sed 's/^v//' | sed 's/_.*//')
END_VERSIONS
"""

stub:
Expand Down Expand Up @@ -101,10 +96,5 @@ process VSEARCH_CLUSTER {
"""
echo | gzip > ${output}
${non_gz_out}

cat <<-END_VERSIONS > versions.yml
"${task.process}":
vsearch: \$(vsearch --version 2>&1 | head -n 1 | sed 's/vsearch //g' | sed 's/,.*//g' | sed 's/^v//' | sed 's/_.*//')
END_VERSIONS
"""
}
54 changes: 36 additions & 18 deletions modules/nf-core/vsearch/cluster/meta.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
name: "vsearch_cluster"
description: Cluster sequences using a single-pass, greedy centroid-based clustering
algorithm.
description: Cluster sequences using a single-pass, greedy centroid-based
clustering algorithm.
keywords:
- vsearch
- clustering
- microbiome
tools:
- vsearch:
description: VSEARCH is a versatile open-source tool for microbiome analysis,
including chimera detection, clustering, dereplication and rereplication, extraction,
FASTA/FASTQ/SFF file processing, masking, orienting, pair-wise alignment, restriction
site cutting, searching, shuffling, sorting, subsampling, and taxonomic classification
of amplicon sequences for metagenomics, genomics, and population genetics. (USEARCH
description: VSEARCH is a versatile open-source tool for microbiome
analysis, including chimera detection, clustering, dereplication and
rereplication, extraction, FASTA/FASTQ/SFF file processing, masking,
orienting, pair-wise alignment, restriction site cutting, searching,
shuffling, sorting, subsampling, and taxonomic classification of amplicon
sequences for metagenomics, genomics, and population genetics. (USEARCH
alternative)
homepage: https://github.com/torognes/vsearch
documentation: https://github.com/torognes/vsearch/releases/download/v2.21.1/vsearch_manual.pdf
Expand Down Expand Up @@ -61,8 +62,8 @@ output:
e.g. [ id:'test' ]
- "*.mothur.tsv.gz":
type: file
description: Results in an OTU table in the mothur ’shared’ tab-separated
plain text file format
description: Results in an OTU table in the mothur ’shared’
tab-separated plain text file format
pattern: "*.mothur.tsv.gz"
ontologies:
- edam: http://edamontology.org/format_3989 # GZIP format
Expand All @@ -74,8 +75,8 @@ output:
e.g. [ id:'test' ]
- "*.otu.tsv.gz":
type: file
description: Results in an OTU table in the classic tab-separated plain text
format
description: Results in an OTU table in the classic tab-separated plain
text format
pattern: "*.otu.tsv.gz"
ontologies:
- edam: http://edamontology.org/format_3989 # GZIP format
Expand Down Expand Up @@ -122,7 +123,8 @@ output:
e.g. [ id:'test' ]
- "*.uc.tsv.gz":
type: file
description: Tab delimited results in a uclust-like format with 10 columns
description: Tab delimited results in a uclust-like format with 10
columns
pattern: "*.uc.gz"
ontologies:
- edam: http://edamontology.org/format_3989 # GZIP format
Expand Down Expand Up @@ -174,13 +176,29 @@ output:
pattern: "*.msa.fasta.gz"
ontologies:
- edam: http://edamontology.org/format_3989 # GZIP format
versions_vsearch:
- - ${task.process}:
type: string
description: The process the versions were collected from
- vsearch:
type: string
description: The tool name
- vsearch --version 2>&1 | sed -n "1s/.*v\([0-9.]*\).*/\\1/p":
type: eval
description: The expression to obtain the version of the tool

topics:
versions:
- versions.yml:
type: file
description: File containing software versions
pattern: "versions.yml"
ontologies:
- edam: http://edamontology.org/format_3750 # YAML
- - ${task.process}:
type: string
description: The process the versions were collected from
- vsearch:
type: string
description: The tool name
- vsearch --version 2>&1 | sed -n "1s/.*v\([0-9.]*\).*/\\1/p":
type: eval
description: The expression to obtain the version of the tool

authors:
- "@mirpedrol"
maintainers:
Expand Down
3 changes: 2 additions & 1 deletion modules/nf-core/vsearch/cluster/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ nextflow_process {
then {
assertAll(
{ assert process.success },
{ assert snapshot(process.out).match() }
{ assert snapshot(process.out).match() },
{ assert snapshot(process.out.findAll { key, val -> key.startsWith("versions") }).match("versions") }
)
}

Expand Down
Loading