Hi, I got a file in the following format
chr1 33711 33712 + 3.29
chr1 33712 33713 + 3.31
chr1 33713 33714 + 3.33
chr1 33714 33715 + 3.34
chr1 33715 33716 + 3.33
chr1 33716 33717 + 3.32
I don't think this file is so compact, so I want change it to something like
chr1 33711 33717 + 3.32
I tried clustering the intervals using Galaxy, but it just returned the first three columns
chr1 33711 33716
I really need to keep the strand and score column, because later I will sort the file based on the score. So is there any script or tools can do the job? It's better to have a option to return the mean or average value of that range in the fifth column.
Here is a sample file waiting to be tested.