Skip to content

Commit 6155f0e

Browse files
added topic channel and environment.yml
1 parent 13466ff commit 6155f0e

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json
3+
channels:
4+
- conda-forge
5+
- bioconda
6+
dependencies:
7+
- conda-forge::r-base=4.5.3

modules/local/multiqc_custom_phantompeakqualtools/main.nf

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ process MULTIQC_CUSTOM_PHANTOMPEAKQUALTOOLS {
22
tag "$meta.id"
33
conda "conda-forge::r-base=4.3.3"
44
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
5-
'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/45/4569ff9993578b8402d00230ab9dd75ce6e63529731eb24f21579845e6bd5cdb/data':
6-
'community.wave.seqera.io/library/r-base:4.3.3--14bb33ac537aea22' }"
5+
'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/c7/c73daa0b0040137fbea15fc8ee54c9bf4e0a9c5e9412cc7c13f7b38cc9c8bbd9/data':
6+
'community.wave.seqera.io/library/r-base:4.5.3--6814a4ccafc04d08' }"
77

88
input:
99
tuple val(meta), path(spp), path(rdata)
@@ -15,6 +15,7 @@ process MULTIQC_CUSTOM_PHANTOMPEAKQUALTOOLS {
1515
tuple val(meta), path("*.spp_nsc_mqc.tsv") , emit: nsc
1616
tuple val(meta), path("*.spp_rsc_mqc.tsv") , emit: rsc
1717
tuple val(meta), path("*.spp_correlation_mqc.tsv"), emit: correlation
18+
tuple val("${task.process}"), val('R'), eval('R --version | sed "1!d; s/.*version //; s/ .*//"'), topic: versions, emit: versions_r
1819

1920
when:
2021
task.ext.when == null || task.ext.when
@@ -27,11 +28,6 @@ process MULTIQC_CUSTOM_PHANTOMPEAKQUALTOOLS {
2728
2829
awk -v OFS='\t' '{print "${meta.id}", \$9}' $spp | cat $nsc_header - > ${prefix}.spp_nsc_mqc.tsv
2930
awk -v OFS='\t' '{print "${meta.id}", \$10}' $spp | cat $rsc_header - > ${prefix}.spp_rsc_mqc.tsv
30-
31-
cat <<-END_VERSIONS > versions.yml
32-
"${task.process}":
33-
r-base: \$(echo \$(R --version 2>&1) | sed 's/^.*R version //; s/ .*\$//')
34-
END_VERSIONS
3531
"""
3632

3733
stub:
@@ -40,10 +36,5 @@ process MULTIQC_CUSTOM_PHANTOMPEAKQUALTOOLS {
4036
touch ${prefix}.spp_nsc_mqc.tsv
4137
touch ${prefix}.spp_rsc_mqc.tsv
4238
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
4839
"""
4940
}

0 commit comments

Comments
 (0)