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

uscc: add bigwig_to_wig process

parent ffc9eb1e
Branches
No related tags found
No related merge requests found
...@@ -31,3 +31,26 @@ sort -T ./ -k1,1 -k2,2n ${bg} > \ ...@@ -31,3 +31,26 @@ sort -T ./ -k1,1 -k2,2n ${bg} > \
""" """
} }
params.bigwig_to_wig = ""
params.bigwig_to_wig_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(bg)
output:
tuple val(file_id), path("*.wig"), emit: wig
script:
"""
bigWigToWig ${params.bigwig_to_wig} - \
${bg} \
${bg.simpleName}.wig
"""
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment