Question: How to add a custom color to BigWig files
gravatar for hss
4.3 years ago by
United States
hss20 wrote:

My wig files are too large for visualization in the UCSC browser.  I used the Galaxy utility Wig/BedGraph-to-bigWig  to convert my wig files.

I uploaded my wig file to the Galaxy workplace then ran the wig to bigWig conversion.   The resulting file can be displayed at UCSC main but the peaks are now just black.   When I select manage custom tracks in the UCSC browser

I see the configuration window but I cannot edit it to add the line color=0,200,0.  Is there a way to do this?   I tried downloading the bigwig file but it does not display as a simple text file so I am not sure how to proceed.  

Any suggestions will be greatly appreciated.



galaxy • 3.6k views
ADD COMMENTlink modified 3.3 years ago by trinna220 • written 4.3 years ago by hss20
gravatar for Jennifer Hillman Jackson
4.3 years ago by
United States
Jennifer Hillman Jackson25k wrote:


Color is designated on the track line of the wiggle file, before it is compressed into bigWig format. See the section "Parameters for custom wiggle track definition lines" on this UCSC FAQ:

Some tips when using Galaxy:

  • compress one wiggle file at at time (one wiggle file per Galaxy dataset)
  • do not use browser lines. if you want to later specify a region or view, try using the Sessions function at UCSC
  • you can replace just the track line easily within Galaxy: Use "Text Manipulation" tools to remove the original track line, paste just a new single replacement line into the "Get Data -> Upload file" tool, then concatenate the two datasets together to create the updated wiggle file. Then compress to bigWig.

Best, Jen, Galaxy team

ADD COMMENTlink written 4.3 years ago by Jennifer Hillman Jackson25k


I tried this concatenating strategy with a Bedgraph file (output of MACS2) before converting in BigWig with no success (pipeline below)

What would you recommand?


ADD REPLYlink written 21 months ago by leomachado9110

Did you edit/create a track line in the Bedgraph dataset to specify color? How-to is in the UCSC link above.

Did this fail conversion or was there some other problem?

If the conversion job failed, would you share the error message (click on the bug icon to view in full)? Was this at Galaxy Main ( or at some other Galaxy?

Thanks, Jen, Galaxy team

ADD REPLYlink written 21 months ago by Jennifer Hillman Jackson25k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 183 users visited in the last hour