Description Usage Arguments Details Value Examples
View source: R/computeMatrix.R
Averages Matrix Columns into Windows using an Averaging Function amd a defined window size
1 | collapse_to_window_size(mat, collapse_fun = rowMeans, window_size = 10)
|
mat |
matrix |
collapse_fun |
function for averaging values inside windows (Default = rowMeans, see Details). |
window_size |
size for binning in bp (default=10, ie average over 10nt) |
for a matrix with ncol=100 and window_size=10, will return a matrix with ncol=10. collapse_fun is a function that functions as ie rowMeans (the default) or rowSums.
matrix with ncol(input matrix)/window_size columns
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.