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

ucsc: add span info

parent cc9b3a50
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ process bigwig_to_wig {
bigWigToBedGraph ${params.bigwig_to_wig} \
${bw} \
${bg.simpleName}.bg
awk '{if(NR>1) {if(\$1!=lastChrom){printf("variableStep chrom=%s\\n",\$1);lastChrom=\$1;}print \$2,\$4}}' ${bw.simpleName}.bg > ${bw.simpleName}.wig
awk '{if(NR>1) {if(\$1!=lastChrom){printf("variableStep chrom=%s span=1\\n",\$1);lastChrom=\$1;}print \$2,\$4}}' ${bw.simpleName}.bg > ${bw.simpleName}.wig
"""
}
......@@ -77,10 +77,10 @@ process bigwig2_to_wig2 {
bigWigToBedGraph ${params.bigwig_to_wig} \
${bw_a} \
${bw_a.simpleName}.bg
awk '{if(NR>1) {if(\$1!=lastChrom){printf("variableStep chrom=%s\\n",\$1);lastChrom=\$1;}print \$2,\$4}}' ${bw_a.simpleName}.bg > ${bw_a.simpleName}.wig
awk '{if(NR>1) {if(\$1!=lastChrom){printf("variableStep chrom=%s span=1\\n",\$1);lastChrom=\$1;}print \$2,\$4}}' ${bw_a.simpleName}.bg > ${bw_a.simpleName}.wig
bigWigToBedGraph ${params.bigwig_to_wig} \
${bw_b} \
${bw_b.simpleName}.bg
awk '{if(NR>1) {if(\$1!=lastChrom){printf("variableStep chrom=%s\\n",\$1);lastChrom=\$1;}print \$2,\$4}}' ${bw_b.simpleName}.bg > ${bw_b.simpleName}.wig
awk '{if(NR>1) {if(\$1!=lastChrom){printf("variableStep chrom=%s span=1\\n",\$1);lastChrom=\$1;}print \$2,\$4}}' ${bw_b.simpleName}.bg > ${bw_b.simpleName}.wig
"""
}
\ No newline at end of file
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