Data Integrity
nextflow.enable.dsl = 2
process md5sum {
container "public.ecr.aws/lts/ubuntu:22.04"
pod annotation: 'scheduler.illumina.com/presetSize', value: 'standard-small'
input:
file txt
output:
stdout emit: result
path '*', emit: output
publishDir "out", mode: 'symlink'
script:
txt_file_name = txt.getName()
id = txt_file_name.takeWhile { it != '.'}
"""
set -ex
echo "File: $txt_file_name"
echo "Sample: $id"
md5sum ${txt} > ${id}_md5.txt
"""
}
workflow {
txt_ch = Channel.fromPath(params.in)
txt_ch.view()
md5sum(txt_ch).result.view()
}Last updated
Was this helpful?
