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

nf_modules: add ucsc bg to bw

parent 3b208403
No related branches found
No related tags found
No related merge requests found
version = "407"
container_url = "lbmc/ucsc:${version}"
process bedgraph_to_bigwig {
container = "${container_url}"
label "big_mem_mono_cpus"
tag "${file_id}"
input:
tuple val(file_id) path(bg)
tuple val(file_id) path(bed)
output:
tuple val(file_id), path("*.bw"), emit: fasta
script:
"""
# transform bed file of start-stop chromosome size to stop chromosome size
awk -v OFS="\\t" '{print \$1, \$3}' ${bed} > chromsize.txt
bedGraphToBigWig ${bg} \
chromsize.txt \
${bg.simpleName}_norm.bw
"""
}
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