Permalink
Browse files

fix wiggle track header line so that it loads into UCSC correctly

  • Loading branch information...
1 parent 03e15af commit 5f340a84204ca58feaaa59dda550e2463f628e1f @lstein lstein committed May 23, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Bio/Graphics/Browser2/TrackDumper.pm
@@ -363,7 +363,7 @@ sub dump_bigwig {
if ($type ne $last_type or $name ne $last_name) {
print "\n" if $last_type or $last_name;
$name ||= $type;
- print qq(track type=wiggle_0 name="$key ($name)" description="Generated by GBrowse from $origin"\n);
+ print qq(track type=bedGraph name="$key ($name)" description="Generated by GBrowse from $origin"\n);
$last_type = $type;
}
@@ -504,7 +504,7 @@ sub print_bio_graphics_wigs {
for my $track_name (keys %$wigs) {
my $origin = $self->origin($label);
- print qq(track type=wiggle_0 name="$track_name" description="Generated by GBrowse from $origin; precision limited to 255 levels"\n);
+ print qq(track type=bedGraph name="$track_name" description="Generated by GBrowse from $origin; precision limited to 255 levels"\n);
for my $seqid (keys %{$wigs->{$track_name}}) {
for my $wigfile (keys %{$wigs->{$track_name}{$seqid}}) {
my ($start,$end) = @{$wigs->{$track_name}{$seqid}{$wigfile}};

0 comments on commit 5f340a8

Please sign in to comment.