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

ucsc: add wig_to_bedgraph

parent b25300b2
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,27 @@ sort -T ./ -k1,1 -k2,2n ${bg} > \
"""
}
params.wig_to_bedgraph = ""
params.wig_to_bedgraph_out = ""
process bigwig_to_wig {
container = "${container_url}"
label "big_mem_mono_cpus"
tag "${file_id}"
if (params.bigwig_to_wig_out != "") {
publishDir "results/${params.bigwig_to_wig_out}", mode: 'copy'
}
input:
tuple val(file_id) path(wig)
output:
tuple val(file_id), path("*.bg"), emit: wig
script:
"""
wigToBedGraph ${wig} ${wig.simpleName}.bg
"""
}
params.bigwig_to_wig = ""
params.bigwig_to_wig_out = ""
......
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