getCountsInWindow: Get number of reads in fixed-width window

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/getCountsInWindow.R

Description

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

Usage

1
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

Details

Uses hist() function

Value

A vector of counts for each window

Author(s)

Jeremy J. Shen

See Also

ScanCBS

Examples

1
	getCountsInWindow(sample(1:10000, 3000, replace=TRUE), 0, 10000, 100, FALSE)

seqCBS documentation built on May 2, 2019, 9:15 a.m.