Learn R Programming

seqCBS (version 1.2.1)

getCountsInWindow: Get number of reads in fixed-width window

Description

Computes the number of reads for each fixed-width window between two limits

Usage

getCountsInWindow(events, startE, endE, windowSize = 10000, sorted = FALSE)

Arguments

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

Value

A vector of counts for each window

Details

Uses hist() function

See Also

ScanCBS

Examples

Run this code
# NOT RUN {
	getCountsInWindow(sample(1:10000, 3000, replace=TRUE), 0, 10000, 100, FALSE)
# }

Run the code above in your browser using DataLab