diff --git a/lib/galaxy/datatypes/converters/bedgraph_to_bigwig_converter.xml b/lib/galaxy/datatypes/converters/bedgraph_to_bigwig_converter.xml
new file mode 100644
index 00000000000..77d2c2a42e6
--- /dev/null
+++ b/lib/galaxy/datatypes/converters/bedgraph_to_bigwig_converter.xml
@@ -0,0 +1,14 @@
+
+
+ grep -v "^track" $input | wigToBigWig -clip stdin $chromInfo $output
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/lib/galaxy/datatypes/converters/wig_to_bigwig_converter.xml b/lib/galaxy/datatypes/converters/wig_to_bigwig_converter.xml
index e85c3a7b138..d90702efe78 100644
--- a/lib/galaxy/datatypes/converters/wig_to_bigwig_converter.xml
+++ b/lib/galaxy/datatypes/converters/wig_to_bigwig_converter.xml
@@ -1,6 +1,6 @@
- wigToBigWig $input $chromInfo $output
+ grep -v "^track" $input | wigToBigWig -clip stdin $chromInfo $output
diff --git a/lib/galaxy/datatypes/interval.py b/lib/galaxy/datatypes/interval.py
index 69c77a553db..23c81cf48d2 100644
--- a/lib/galaxy/datatypes/interval.py
+++ b/lib/galaxy/datatypes/interval.py
@@ -338,7 +338,7 @@ class BedGraph( Interval ):
file_ext = "bedgraph"
def get_track_type( self ):
- return "LineTrack", {"data": "array_tree"}
+ return "LineTrack", { "data": "bigwig", "index": "bigwig" }
def as_ucsc_display_file( self, dataset, **kwd ):
"""
@@ -1141,8 +1141,9 @@ class Wiggle( Tabular, _RemoteCallMixin ):
resolution = min( resolution, 100000 )
resolution = max( resolution, 1 )
return resolution
+
def get_track_type( self ):
- return "LineTrack", {"data": "bigwig", "index": "bigwig"}
+ return "LineTrack", { "data": "bigwig", "index": "bigwig" }
class CustomTrack ( Tabular ):
"""UCSC CustomTrack"""