mirror of
https://github.com/MillironX/taxprofiler.git
synced 2024-11-25 04:29:54 +00:00
32 lines
964 B
Text
32 lines
964 B
Text
process KRAKEN2_STANDARD_REPORT {
|
|
tag "$meta.id"
|
|
label 'process_single'
|
|
|
|
conda "conda-forge::sed=4.8"
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://containers.biocontainers.pro/s3/SingImgsRepo/biocontainers/v1.2.0_cv2/biocontainers_v1.2.0_cv2.img' :
|
|
'biocontainers/biocontainers:v1.2.0_cv2' }"
|
|
|
|
input:
|
|
tuple val(meta), path(report)
|
|
|
|
output:
|
|
tuple val(meta), path(result), emit: report
|
|
path 'versions.yml' , emit: versions
|
|
|
|
when:
|
|
task.ext.when == null || task.ext.when
|
|
|
|
script:
|
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
|
result = "${prefix}_standardized.kraken2.report.txt"
|
|
"""
|
|
cut -f1-3,6-8 '${report}' > '${result}'
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
cut: \$(echo \$(cut --version 2>&1) | sed 's/^.*(GNU coreutils) //; s/ Copyright.*\$//')
|
|
END_VERSIONS
|
|
"""
|
|
}
|
|
|