mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
feat: add haplocheck
This commit is contained in:
parent
ae55653c3c
commit
86343cb034
2 changed files with 88 additions and 0 deletions
33
modules/haplocheck/main.nf
Normal file
33
modules/haplocheck/main.nf
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
process HAPLOCHECK {
|
||||||
|
tag "$meta.id"
|
||||||
|
label 'process_low'
|
||||||
|
|
||||||
|
conda (params.enable_conda ? "bioconda::haplocheck=1.3.3" : null)
|
||||||
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
|
'https://depot.galaxyproject.org/singularity/haplocheck:1.3.3--h4a94de4_0':
|
||||||
|
'quay.io/biocontainers/haplocheck:1.3.3--h4a94de4_0' }"
|
||||||
|
|
||||||
|
input:
|
||||||
|
|
||||||
|
tuple val(meta), path(vcf)
|
||||||
|
|
||||||
|
output:
|
||||||
|
tuple val(meta), path("*.txt"), emit: txt
|
||||||
|
tuple val(meta), path("*.html"), emit: html
|
||||||
|
path "versions.yml" , emit: versions
|
||||||
|
|
||||||
|
when:
|
||||||
|
task.ext.when == null || task.ext.when
|
||||||
|
|
||||||
|
script:
|
||||||
|
def args = task.ext.args ?: ''
|
||||||
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
|
"""
|
||||||
|
haplocheck --raw --out $prefix $vcf
|
||||||
|
|
||||||
|
cat <<-END_VERSIONS > versions.yml
|
||||||
|
"${task.process}":
|
||||||
|
haplocheck: \$(echo \$(haplocheck --version 2>&1) | cut -f 2 -d " " )
|
||||||
|
END_VERSIONS
|
||||||
|
"""
|
||||||
|
}
|
55
modules/haplocheck/meta.yml
Normal file
55
modules/haplocheck/meta.yml
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
name: "haplocheck"
|
||||||
|
description: |
|
||||||
|
Haplocheck detects contamination patterns in mtDNA AND WGS sequencing studies by analyzing
|
||||||
|
the mitochondrial DNA. Haplocheck also works as a proxy tool for nDNA studies and provides
|
||||||
|
users a graphical report to investigate the contamination further. Internally, it uses the
|
||||||
|
Haplogrep tool, that supports rCRS and RSRS mitochondrial versions.
|
||||||
|
keywords:
|
||||||
|
- mitochondrial
|
||||||
|
- mtDNA
|
||||||
|
- contamination
|
||||||
|
tools:
|
||||||
|
- "haplocheck":
|
||||||
|
description: "Detects in-sample contamination in mtDNA or WGS sequencing studies by analyzing the mitochondrial content."
|
||||||
|
homepage: "https://github.com/genepi/haplocheck"
|
||||||
|
documentation: "https://github.com/genepi/haplocheck"
|
||||||
|
tool_dev_url: "https://github.com/genepi/haplocheck"
|
||||||
|
doi: 10.1101/gr.256545.119
|
||||||
|
licence: "['MIT']"
|
||||||
|
|
||||||
|
input:
|
||||||
|
- meta:
|
||||||
|
type: map
|
||||||
|
description: |
|
||||||
|
Groovy Map containing sample information
|
||||||
|
e.g. [ id:'test', single_end:false ]
|
||||||
|
|
||||||
|
- vcf:
|
||||||
|
type: file
|
||||||
|
description: VCF file
|
||||||
|
pattern: "*.{vcf.gz}"
|
||||||
|
|
||||||
|
output:
|
||||||
|
- meta:
|
||||||
|
type: map
|
||||||
|
description: |
|
||||||
|
Groovy Map containing sample information
|
||||||
|
e.g. [ id:'test', single_end:false ]
|
||||||
|
|
||||||
|
- versions:
|
||||||
|
type: file
|
||||||
|
description: File containing software versions
|
||||||
|
pattern: "versions.yml"
|
||||||
|
|
||||||
|
- txt:
|
||||||
|
type: file
|
||||||
|
description: Raw report in txt format
|
||||||
|
pattern: "*.{txt}"
|
||||||
|
|
||||||
|
- html:
|
||||||
|
type: file
|
||||||
|
description: Haplocheck HTML report
|
||||||
|
pattern: "*.{txt}"
|
||||||
|
|
||||||
|
authors:
|
||||||
|
- "@lmtani"
|
Loading…
Reference in a new issue