getCountsInWindow {seqCBS}R Documentation

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

Details

Uses hist() function

Value

A vector of counts for each window

Author(s)

Jeremy J. Shen

See Also

ScanCBS

Examples

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

[Package seqCBS version 1.2.1 Index]