mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-14 13:43:09 +00:00
0bdd589163
* added module endorspy and test * added endorspy * Fixed spaces and remove unnecessary lines from test * added extra new line to test.yml * added a prefix to to avoid name collision * Update modules/endorspy/main.nf Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update modules/endorspy/meta.yml Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update modules/endorspy/meta.yml Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update modules/endorspy/meta.yml Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update modules/endorspy/meta.yml Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update modules/endorspy/meta.yml Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update modules/endorspy/meta.yml Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update modules/endorspy/meta.yml Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Apply suggestions from code review Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Apply suggestions from code review * Update modules/endorspy/main.nf * Apply suggestions from code review Co-authored-by: James A. Fellows Yates <jfy133@gmail.com>
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
process ENDORSPY {
|
|
tag "$meta.id"
|
|
label 'process_low'
|
|
|
|
conda (params.enable_conda ? "bioconda::endorspy=0.4" : null)
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://depot.galaxyproject.org/singularity/endorspy:0.4--hdfd78af_0':
|
|
'quay.io/biocontainers/endorspy:0.4--hdfd78af_0' }"
|
|
|
|
input:
|
|
tuple val(meta), path(stats), path(stats_optional)
|
|
|
|
output:
|
|
tuple val(meta), path("*_mqc.json"), emit: json
|
|
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}"
|
|
def optionalstats = stats_optional ? "statsOptional=${stats_optional}" : ''
|
|
|
|
"""
|
|
endorspy \\
|
|
$stats \\
|
|
$optionalstats \\
|
|
$args \\
|
|
-o json \\
|
|
-n $prefix
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
endorspy: \$(echo \$(endorspy --version 2>&1) | sed 's/^endorS.py //' )
|
|
END_VERSIONS
|
|
"""
|
|
}
|