# HG changeset patch
# User yating-l
# Date 1495052909 14400
# Node ID 3290b79cd9f38271c6423dc9e05cd5be2d8043b0
planemo upload
diff -r 000000000000 -r 3290b79cd9f3 bedgraph_to_bigwig.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/bedgraph_to_bigwig.xml Wed May 17 16:28:29 2017 -0400
@@ -0,0 +1,128 @@
+
+
+ Converts a bedGraph file to bigWig format
+
+
+ ucsc_macros.xml
+
+
+
+ ucsc_bigwig
+ ucsc_bigbed
+
+
+
+ "${bedgraph_input}".sorted &&
+
+ bedGraphToBigWig
+ $optional_param("-blockSize", $adv.block_size)
+ $optional_param("-itemsPerSlot", $adv.items_per_slot)
+ ${adv.no_compression}
+ "${bedgraph_input}".sorted "${chrominfo_input}" "${bw_output}"
+]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+`_ file
+to the `bigWig format `_.
+
+----
+
+**The bedGraph format**
+
+The first three columns of the bedGraph file are the same as the
+`BED format `_, and it uses
+a `zero-start, half-open `_
+coordinate system. The fourth column of the bedGraph file contains the data values::
+
+ chromA chromStartA chromEndA dataValueA
+ chromB chromStartB chromEndB dataValueB
+
+----
+
+.. class:: infomark
+
+**Chromosomes sizes file**
+
+This tool requires a chromosomes sizes (``chrom.sizes``) file, which lists the size of
+each scaffold within an assembly. For genome assemblies that are hosted by UCSC,
+the ``chrom.sizes`` file is available through the
+`Sequence and Annotation Downloads `_ page.
+The `twoBitInfo `_ tool
+can be used to generate the ``chrom.sizes`` for the genome assemblies that are not hosted
+by UCSC.
+
+ ]]>
+
+
+
diff -r 000000000000 -r 3290b79cd9f3 test-data/contigs.bedgraph
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/contigs.bedgraph Wed May 17 16:28:29 2017 -0400
@@ -0,0 +1,51 @@
+track name="bedGraph" description="bedGraph"
+contig10 0 173 0
+contig10 173 188 1
+contig10 188 206 2
+contig10 206 208 1
+contig10 208 221 2
+contig10 221 223 1
+contig10 223 248 2
+contig10 248 275 3
+contig10 275 279 2
+contig10 279 281 1
+contig10 281 286 2
+contig10 286 290 3
+contig10 290 350 2
+contig10 350 366 1
+contig10 1002 1008 8
+contig10 1008 1009 7
+contig10 1009 1010 8
+contig10 1010 1028 9
+contig10 1028 1032 10
+contig10 1032 1040 9
+contig10 1040 1041 7
+contig10 1041 1042 8
+contig10 1042 1059 10
+contig10 1059 1074 9
+contig10 1074 1075 4
+contig10 1075 1078 3
+contig10 1078 1082 2
+contig10 1082 1095 3
+contig10 1095 1102 2
+contig10 1102 1131 1
+contig10 4843 4846 4
+contig10 4846 4855 5
+contig10 4855 4856 6
+contig10 4856 4858 7
+contig10 4858 4863 8
+contig10 4863 4864 9
+contig12 40351 40352 149
+contig12 40352 40353 151
+contig12 40353 40354 153
+contig12 40354 40355 155
+contig12 40355 40356 156
+contig12 40356 40357 160
+contig12 40357 40358 163
+contig12 40358 40359 169
+contig12 40359 40360 175
+contig12 40360 40361 176
+contig12 54693 54694 8
+contig12 54694 54985 0
+contig12 54985 55008 1
+contig12 55008 55085 2
diff -r 000000000000 -r 3290b79cd9f3 test-data/contigs.bedgraph.bw
Binary file test-data/contigs.bedgraph.bw has changed
diff -r 000000000000 -r 3290b79cd9f3 test-data/contigs.bedgraph_advanced.bw
Binary file test-data/contigs.bedgraph_advanced.bw has changed
diff -r 000000000000 -r 3290b79cd9f3 test-data/contigs.bedgraph_clip.bw
Binary file test-data/contigs.bedgraph_clip.bw has changed
diff -r 000000000000 -r 3290b79cd9f3 test-data/contigs.clip.bedgraph
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/contigs.clip.bedgraph Wed May 17 16:28:29 2017 -0400
@@ -0,0 +1,53 @@
+track name="bedGraph" description="bedGraph"
+contig10 0 173 0
+contig10 173 188 1
+contig10 188 206 2
+contig10 206 208 1
+contig10 208 221 2
+contig10 221 223 1
+contig10 223 248 2
+contig10 248 275 3
+contig10 275 279 2
+contig10 279 281 1
+contig10 281 286 2
+contig10 286 290 3
+contig10 290 350 2
+contig10 350 366 1
+contig10 1002 1008 8
+contig10 1008 1009 7
+contig10 1009 1010 8
+contig10 1010 1028 9
+contig10 1028 1032 10
+contig10 1032 1040 9
+contig10 1040 1041 7
+contig10 1041 1042 8
+contig10 1042 1059 10
+contig10 1059 1074 9
+contig10 1074 1075 4
+contig10 1075 1078 3
+contig10 1078 1082 2
+contig10 1082 1095 3
+contig10 1095 1102 2
+contig10 1102 1131 1
+contig10 4843 4846 4
+contig10 4846 4855 5
+contig10 4855 4856 6
+contig10 4856 4858 7
+contig10 4858 4863 8
+contig10 4863 4864 9
+contig10 43000 43200 10
+contig12 40351 40352 149
+contig12 40352 40353 151
+contig12 40353 40354 153
+contig12 40354 40355 155
+contig12 40355 40356 156
+contig12 40356 40357 160
+contig12 40357 40358 163
+contig12 40358 40359 169
+contig12 40359 40360 175
+contig12 40360 40361 176
+contig12 54693 54694 8
+contig12 54694 54985 0
+contig12 54985 55008 1
+contig12 55008 55085 2
+contig12 56000 56100 2
diff -r 000000000000 -r 3290b79cd9f3 test-data/contigs_chromInfo.tab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/contigs_chromInfo.tab Wed May 17 16:28:29 2017 -0400
@@ -0,0 +1,2 @@
+contig10 43013
+contig12 56019
diff -r 000000000000 -r 3290b79cd9f3 tool_dependencies.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tool_dependencies.xml Wed May 17 16:28:29 2017 -0400
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
diff -r 000000000000 -r 3290b79cd9f3 ucsc_macros.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/ucsc_macros.xml Wed May 17 16:28:29 2017 -0400
@@ -0,0 +1,44 @@
+
+
+
+ ucsc_twobit
+
+
+
+
+
+
+ C
+
+
+
+
+
+
+ @article{Kent01062002,
+author = {Kent, W. James and Sugnet, Charles W. and Furey, Terrence S. and Roskin, Krishna M. and Pringle, Tom H. and Zahler, Alan M. and Haussler, and David},
+title = {The Human Genome Browser at UCSC},
+volume = {12},
+number = {6},
+pages = {996-1006},
+year = {2002},
+doi = {10.1101/gr.229102},
+URL = {http://genome.cshlp.org/content/12/6/996.abstract},
+eprint = {http://genome.cshlp.org/content/12/6/996.full.pdf+html},
+journal = {Genome Research}
+}
+
+
+
+
+
+
+
+
+