Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new module for Toulligqc #5131

Merged
merged 27 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
54d98e9
ADD: working toulligqc as module
Salome-Brunon Mar 13, 2024
f8b0e5e
ToulligQC module passed tests
Salome-Brunon Mar 15, 2024
d2f56a1
[automated] Fix linting with Prettier
nf-core-bot Mar 15, 2024
06bab25
Remove whitespaces
Salome-Brunon Mar 18, 2024
85f8598
Update main.nf
Salome-Brunon Mar 18, 2024
c09b0a8
Update main.nf
Salome-Brunon Mar 18, 2024
fc83273
Merge branch 'master' into toulligqc
pinin4fjords Mar 18, 2024
1b07601
Update modules/nf-core/toulligqc/meta.yml
Salome-Brunon Mar 19, 2024
d3e6d86
Update modules/nf-core/toulligqc/meta.yml
Salome-Brunon Mar 19, 2024
8f78d86
Update modules/nf-core/toulligqc/meta.yml
Salome-Brunon Mar 19, 2024
4310cd3
Update modules/nf-core/toulligqc/main.nf
Salome-Brunon Mar 19, 2024
f8e3db5
Merge branch 'toulligqc' of github.com:Salome-Brunon/modules into tou…
Salome-Brunon Mar 19, 2024
67eaf13
UPDATE: added fastq as input option
Salome-Brunon Mar 21, 2024
f891afb
Merge branch 'master' into toulligqc
Salome-Brunon Mar 21, 2024
f2bc6d1
Update environment.yml
Salome-Brunon Mar 21, 2024
939aa63
UPDATE: moved to ToulligQC v2.5.4 and added BAM as input file option
Salome-Brunon Mar 25, 2024
2190de6
Merge branch 'master' into toulligqc
Salome-Brunon Mar 25, 2024
486a54c
Update modules/nf-core/toulligqc/meta.yml
Salome-Brunon Mar 26, 2024
4557e5d
Update modules/nf-core/toulligqc/meta.yml
Salome-Brunon Mar 26, 2024
c5f24db
UPDATE: added meta map to module
Salome-Brunon Mar 26, 2024
8680dc5
Merge branch 'master' into toulligqc
Salome-Brunon Mar 26, 2024
9bbc2b7
UPDATE: added stub section to module
Salome-Brunon Mar 27, 2024
2281f51
Merge branch 'master' into toulligqc
Salome-Brunon Mar 27, 2024
efdd607
Update modules/nf-core/toulligqc/main.nf
Salome-Brunon Mar 28, 2024
d61ddd9
FIX: pass seq_summarry, fastq, bam as one tuple
Salome-Brunon Mar 28, 2024
c64f776
Merge branch 'master' into toulligqc
Salome-Brunon Mar 28, 2024
47eb172
Merge branch 'master' into toulligqc
Salome-Brunon Mar 28, 2024
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
9 changes: 9 additions & 0 deletions modules/nf-core/toulligqc/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json
name: "toulligqc"
channels:
- conda-forge
- bioconda
- defaults
dependencies:
- "bioconda::toulligqc=2.5.2"
35 changes: 35 additions & 0 deletions modules/nf-core/toulligqc/main.nf
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

Salome-Brunon marked this conversation as resolved.
Show resolved Hide resolved
process TOULLIGQC {
label 'process_low'

conda "${moduleDir}/environment.yml"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/toulligqc:2.5.2--pyhdfd78af_0':
'biocontainers/toulligqc:2.5.2--pyhdfd78af_0' }"

input:
path seq_summary
Salome-Brunon marked this conversation as resolved.
Show resolved Hide resolved

output:
path "*/*.data", emit: report_data
path "*/*.html", emit: report_html, optional: true
path "*/images/*.html", emit: plots_html
path "*/images/plotly.min.js", emit: plotly_js
Salome-Brunon marked this conversation as resolved.
Show resolved Hide resolved

path "versions.yml" , emit: versions

when:
task.ext.when == null || task.ext.when

script:
def args = task.ext.args ?: ''

"""
toulligqc -a ${seq_summary}

cat <<-END_VERSIONS > versions.yml
"${task.process}":
toulligqc: \$(toulligqc --version 2>&1)
END_VERSIONS
Salome-Brunon marked this conversation as resolved.
Show resolved Hide resolved
"""
}
49 changes: 49 additions & 0 deletions modules/nf-core/toulligqc/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json
name: "toulligqc"
description: "A post sequencing QC tool for Oxford Nanopore sequencers"
keywords:
- nanopore sequencing
- quality control
- genomics
tools:
- "toulligqc":
description: "A post sequencing QC tool for Oxford Nanopore sequencers"
homepage: https://github.com/GenomiqueENS/toulligQC
// documentation: "None"
Salome-Brunon marked this conversation as resolved.
Show resolved Hide resolved
// tool_dev_url: "None"
Salome-Brunon marked this conversation as resolved.
Show resolved Hide resolved
// doi: ""
Salome-Brunon marked this conversation as resolved.
Show resolved Hide resolved
licence: ["CECILL-2.1"]

input:
- seq_summary:
type: file
description: Basecaller sequencing summary source
pattern: "*.{fast5, fast5.tar.gz, fast5.tar.bz2}"

output:
- report_data:
type: file
description: Report data emitted from toulligqc
pattern: "*.data"
- report_html:
type: file
description: Report data in html format
pattern: "*.html"
- plots_html:
type: file
description: Plots emitted in html format
pattern: "*.html"
- plotly_js:
type: file
description: Plots emitted from toulligqc
pattern: "plotly.min.js"
- versions:
type: file
description: File containing software versions
pattern: "versions.yml"

authors:
- "@Salome-Brunon"
maintainers:
- "@Salome-Brunon"
33 changes: 33 additions & 0 deletions modules/nf-core/toulligqc/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
nextflow_process {

name "Test Process TOULLIGQC"
script "../main.nf"
process "TOULLIGQC"

tag "modules"
tag "modules_nfcore"
tag "toulligqc"

test("sarscov2 - nanopore sequencing_summary") {
when {
process {
"""
input[0] = [
file(params.test_data['sarscov2']['nanopore']['test2_sequencing_summary'], checkIfExists: true)
]
Salome-Brunon marked this conversation as resolved.
Show resolved Hide resolved
"""
}
}

then {
assertAll(
{ assert process.success },
{ assert snapshot(file(process.out.report_data[0]).readLines()[11..74]).match() },
{ assert process.out.report_html[0] ==~ ".*/report.html"}
)
}

}

}

73 changes: 73 additions & 0 deletions modules/nf-core/toulligqc/tests/main.nf.test.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions modules/nf-core/toulligqc/tests/tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
toulligqc:
- "modules/nf-core/toulligqc/**"
Loading