Question: What step size for wig files?
gravatar for YanO
4.5 years ago by
United Kingdom
YanO130 wrote:


I am trying to convert bedGraph files to bigwig. I cannot use UCSC's bedGraphToBigWig script because later I need to convert to wig files using UCSC's bigWigToWig script, which just converts it back to bedGraph. 

I have found an alternative script to do bedGraph to wig, but I need the step size, and don't know what it should be.

What default step size does UCSC's bedGraphToWig script use? (Is it 1?) How do I know which step size I should use?  What step size do the wig files output from MACS have? (Is it 10?)

(I can't use 1 because I run out of memory when subsequently running wigToBigWig.)


Thank you!

ucsc bigwig wig macs • 1.6k views
ADD COMMENTlink modified 4.5 years ago by mehran.karimzade160 • written 4.5 years ago by YanO130

Sorry, I do not think I understand this. Could you clarify why can't you do bedGraphToBigWig -> bigWigToWig ? Why would it convert it back to bedGraph?

ADD REPLYlink written 4.5 years ago by Saulius Lukauskas530

I actually don't know why it converts it back into a bedGraph when bigWigToWig is used - it just does. See this answer from UCSC here:

ADD REPLYlink written 4.5 years ago by YanO130
gravatar for mehran.karimzade
4.5 years ago by
mehran.karimzade160 wrote:

I had the similar problem a while ago: A: bigwig to wig conversion, getting bedgraph

The default step size is 1, and you can use the python script I wrote to convert bedGraph to wig:

You should run the script for each chromosome separately and them combine the outputs.




ADD COMMENTlink written 4.5 years ago by mehran.karimzade160
Please log in to add an answer.


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