Question: how to combine individual chromosomal wig files into 1 bigwig file.
gravatar for hss
2.5 years ago by
United States
hss20 wrote:

I am using Galaxy on a PC.  My peak calling software is a PC based program built into DNAstar.  Unfortunately it does not have a way to concatenate the called peaks into a single bigwig file.  The output is single chromosome specific wig files. Is there a way in the Galaxy wig to bigwig tool to have it combine multiple wig files into one bigwig file?   I also do not have access to a Unix machine or a Mac.    I did a test using EM editor and found that I can manually combine these files .  I just need to re-enter by hand a line break b/w Chromosome track info.   The files become huge and I am not sure that I can combine all the mouse chromosome wig files and still be allowed to upload it to Galaxy.     Having a single bigwig file for all my called peaks will enable me to generate a single custom track in the USCS browser.  I need to make six of these custom tracks to identify peaks where our molecule of interest is contacting the genome.


  Thanks for everyone's thoughts on how to do this task.

concatinate wig galaxy bigwig • 1.2k views
ADD COMMENTlink modified 2.3 years ago by Jennifer Hillman Jackson24k • written 2.5 years ago by hss20
gravatar for Jennifer Hillman Jackson
2.5 years ago by
United States
Jennifer Hillman Jackson24k wrote:


The tool "Concatenate" can be used to merge datasets. The inputs will be one "stacked" on top of another. 

Inserting blank lines between the chromosomes is not necessary to my knowledge. However, be certain to have only one browser line and one track line in the final result. A file of just a browser and track line can be loaded into Galaxy and then merged with the other data lines - just be sure to place this file at the top of the "stack" by entering it first on the tool form.

One declaration line per chromosome is still necessary (lines that start with "variableStep" or "fixedStep"). Do not mix types within a single dataset and do not combine more that one track in a single dataset. 

Other tools for line manipulations (to strip off duplicate track lines and such), see the same tool group as the Concatenate tool: Text Manipulation.

At the very end, convert to bigWig, as this will be necessary for visualization at UCSC from Galaxy.

More about WIG/wiggle format specifications is here at UCSC:

Thanks! Jen, Galaxy team

ADD COMMENTlink written 2.5 years ago by Jennifer Hillman Jackson24k
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: 61 users visited in the last hour