mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 19:18:17 +00:00
f62e4cf5f0
* Added Somalier extract module * changed somalier_dbg4 to somalier for versions.yml * added and minor changes in meta.yml * Apply suggestions from code review * Update main.nf * Typo in quay.io rl * updated the input * new updates * linting * linting * changed the test.yml * Update modules/somalier/extract/main.nf Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update modules/somalier/extract/main.nf Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update modules/somalier/extract/meta.yml Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update modules/somalier/extract/main.nf Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update tests/modules/somalier/extract/main.nf Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update modules/somalier/extract/main.nf Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update tests/modules/somalier/extract/test.yml Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * last changes * Update modules/somalier/extract/meta.yml Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update modules/somalier/extract/meta.yml Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update modules/somalier/extract/main.nf Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> Co-authored-by: James A. Fellows Yates <jfy133@gmail.com>
39 lines
1 KiB
Text
39 lines
1 KiB
Text
|
|
process SOMALIER_EXTRACT {
|
|
tag "$meta.id"
|
|
label 'process_low'
|
|
|
|
conda (params.enable_conda ? "bioconda::somalier=0.2.15" : null)
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://depot.galaxyproject.org/singularity/somalier:0.2.15--h37c5b7d_0':
|
|
'quay.io/biocontainers/somalier:0.2.15--h37c5b7d_0' }"
|
|
|
|
input:
|
|
tuple val(meta), path(bam), path(bai)
|
|
tuple path(ref), path(refidx)
|
|
path(sites)
|
|
|
|
output:
|
|
tuple val(meta), path("*.somalier"), emit: extract
|
|
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}"
|
|
|
|
"""
|
|
somalier extract \\
|
|
--sites ${sites} \\
|
|
-f ${ref} \\
|
|
${bam} \\
|
|
${args}
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
somalier: \$(echo \$(somalier 2>&1) | sed 's/^.*somalier version: //; s/Commands:.*\$//')
|
|
END_VERSIONS
|
|
"""
|
|
}
|