Hi everyone,
I have a bed graph file which contains par base intervals. I would like to convert this file to Bed format where we have longer intervals. Here is the BedGraph file.
PvP01_01_v1 0 1 0
PvP01_01_v1 1 2 3.39882
PvP01_01_v1 2 5 3.81385
PvP01_01_v1 5 7 2.81385
PvP01_01_v1 7 10 3.55081
Is there any tool that does the job?
Thanks,
Just for information, it is possible to retain the information of the 4th column by using bedtools merge options
-c 4
and-o mean
(among other possible operators). It will take the mean of the original 4th column values that overlap the new interval.Hell yea, thanks Carlo!