View source: R/compress_signal_track.R
compress_signal_track | R Documentation |
Partitions the position variable (first column of input data frame) in
windows of the size specified in window_size
and computes the average
signal (second column) in each partition. Most common use case is to compress
the data for plotting.
compress_signal_track(df, window_size)
df |
Input signal track data as a
No default. |
window_size |
Integer indicating the length (in bp) of the window (or partition) to average signal in. No default. |
## Not run: compress_signal_track(df=signal_data, window_size=10) compress_signal_track(chrI_signal, 100) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.