View source: R/smooth_movingw.R
smooth_movingw | R Documentation |
The expression/score of a gene/bin is replaced by a summary of bins around. For example the median across 3 bins.
smooth_movingw(df, wsize = 3, nb_cores = 1, FUN = stats::median, rcpp = FALSE)
df |
the input data.frame with coordinate columns (chr, start, end) and then one column per cell |
wsize |
the window size. Default is 3. |
nb_cores |
the number of processors to use. |
FUN |
the function to apply to each window. Default is median. |
rcpp |
use Rcpp function. Default is FALSE. More memory-efficient and faster when running on one core. |
a data.frame with smoothed signal.
Jean Monlong
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.