getCountsInWindow {seqCBS} | R Documentation |
Computes the number of reads for each fixed-width window between two limits
getCountsInWindow(events, startE, endE, windowSize = 10000, sorted = FALSE)
events |
A vector of the read positions |
startE |
Left limit |
endE |
Right Limit |
windowSize |
Size of the window |
sorted |
Whether events is sorted, default F |
Uses hist() function
A vector of counts for each window
Jeremy J. Shen
getCountsInWindow(sample(1:10000, 3000, replace=TRUE), 0, 10000, 100, FALSE)