Hi all,
I am working on expression data from EpigeneticRoadmap and wanted to generate an expression track.(Link here)
Since the cell line expression data only has bigwig file in two separate files. One from positive strand; the other from negative strand and has negative values. UCSC BigWigMerge may not be useful since it would only add up the values of signal.
Anyone know how to merge these two bigwig files together? Thanks for the input!
Did you ever get this working? I'm about to write up a script to do this myself, but it would be great if you could save me some time.
If there's not a premade program then I can show you how to do it with a bit of python and the pyBigWig package.
Emmm. I am not that familiar with python. By a quick browse at the pyBigWig package, I need to first convert all the signal value in the negative strand to positive value, and then generate a new bigwig file with header and new value. Then I can use other tools like BigWigMerge from UCSC to merge my bigwig file?
How do I create a new bigwig file using that package?
fp = pyBigWig.open("some_new_file.bw", "w")
).chroms()
function on one of the bigWig files you want to merge).fp.close()
).