powered by
This function calculates the average count within a 25kb padding around each (x, y) coordinate pair.
calculate_avg_count(x, y, counts, resol)
A numeric vector of average counts.
Numeric vector of x-coordinates of contact frequency data frame.
Numeric vector of y-coordinates of contact frequency data frame.
Numeric vector of contact frequency counts.
Integer specifying the HiC resolution.
x <- c(1, 2, 3, 4, 5) y <- c(1, 2, 3, 4, 5) counts <- c(10, 20, 30, 40, 50) resol <- 10000 calculate_avg_count(x, y, counts, resol)
Run the code above in your browser using DataLab