powered by
Computes the number of reads for each fixed-width window between two limits
getCountsInWindow(events, startE, endE, windowSize = 10000, sorted = FALSE)
A vector of the read positions
Left limit
Right Limit
Size of the window
Whether events is sorted, default F
A vector of counts for each window
Uses hist() function
ScanCBS
# NOT RUN { getCountsInWindow(sample(1:10000, 3000, replace=TRUE), 0, 10000, 100, FALSE) # }
Run the code above in your browser using DataLab