Skip to content
Snippets Groups Projects
Unverified Commit a3d3e95b authored by Laurent Modolo's avatar Laurent Modolo
Browse files

nf_modules: add picard

parent fe874785
No related branches found
No related tags found
No related merge requests found
version = "2.18.11"
container_url = "lbmc/picard:${version}"
process mark_duplicate {
container = "${container_url}"
label "big_mem_mono_cpus"
tag "$file_id"
publishDir "results/mapping/ddup/", mode: 'copy'
input:
tuple val(file_id), path(bam)
output:
tuple val(file_id) , path("*.bam"), emit: bam
path "*_report.txt", emit: report
script:
"""
PicardCommandLine MarkDuplicates \
VALIDATION_STRINGENCY=LENIENT \
REMOVE_DUPLICATES=true \
INPUT=${bams[0]} \
OUTPUT=${bams[0].baseName}_dedup.bam \
METRICS_FILE=${bams[0].baseName}_picard_dedup_report.txt &> \
picard_${bams[0].baseName}.log
"""
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment