2022-08-16 19:46:22 +00:00
|
|
|
process EIDO_VALIDATE {
|
2022-10-05 10:24:18 +00:00
|
|
|
tag "$samplesheet"
|
2022-08-16 19:46:22 +00:00
|
|
|
label 'process_single'
|
|
|
|
|
|
|
|
conda (params.enable_conda ? "conda-forge::eido=0.1.9" : null)
|
|
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
|
|
'https://containers.biocontainers.pro/s3/SingImgsRepo/eido/0.1.9_cv2/eido_0.1.9_cv2.sif' :
|
|
|
|
'biocontainers/eido:0.1.9_cv2' }"
|
|
|
|
|
|
|
|
input:
|
|
|
|
path samplesheet
|
|
|
|
path schema
|
2022-09-16 13:08:28 +00:00
|
|
|
path pep_input_base_dir
|
2022-08-16 19:46:22 +00:00
|
|
|
|
|
|
|
output:
|
|
|
|
path "versions.yml" , emit: versions
|
|
|
|
path "*.log" , emit: log
|
|
|
|
|
|
|
|
when:
|
|
|
|
task.ext.when == null || task.ext.when
|
|
|
|
|
|
|
|
script:
|
|
|
|
def args = task.ext.args ?: ''
|
|
|
|
def prefix = task.ext.prefix ?: "validation"
|
|
|
|
"""
|
|
|
|
eido validate $args $samplesheet -s $schema -e > ${prefix}.log
|
|
|
|
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
|
|
"${task.process}":
|
|
|
|
eido: \$(echo \$(eido --version 2>&1) | sed 's/^.*eido //;s/ .*//' ))
|
|
|
|
END_VERSIONS
|
|
|
|
"""
|
|
|
|
}
|