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

ucsc: fix var name in bigwig_to_wig

parent 1faa76ad
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ process bigwig_to_wig {
}
input:
tuple val(file_id) path(bg)
tuple val(file_id) path(bw)
output:
tuple val(file_id), path("*.wig"), emit: wig
......@@ -50,9 +50,9 @@ process bigwig_to_wig {
script:
"""
bigWigToBedGraph ${params.bigwig_to_wig} \
${bg} \
${bw} \
${bg.simpleName}.bg
awk '{if(NR>1) {if(\$1!=lastChrom){printf("variableStep chrom=%s\\n",\$1);lastChrom=\$1;}print \$2,\$4}}' ${bg.simpleName}.bg > ${bg.simpleName}.wig
awk '{if(NR>1) {if(\$1!=lastChrom){printf("variableStep chrom=%s\\n",\$1);lastChrom=\$1;}print \$2,\$4}}' ${bw.simpleName}.bg > ${bw.simpleName}.wig
"""
}
......
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