laneSubsample: Subsample short read alignment locations

Description Usage Arguments Value Author(s) Examples

View source: R/diffPeaks.R

Description

Subsamples data from multiple lanes on a per-chromosome basis.

Usage

1
laneSubsample(lane1, lane2, fudge = 0.05)

Arguments

lane1, lane2

Two lanes of data, each of class "GRanges".

fudge

A numeric fudge factor. For each chromosome, if the difference in the sizes relative to the size of the first dataset is less than fudge, no subsampling is done.

Value

laneSubsample returns a list similar to its input, but with the larger dataset subsampled to be similar to the smaller one.

Author(s)

D. Sarkar

Examples

1
2
3
4
data(cstest)
## subsample to compare lanes
cstest.sub <- laneSubsample(cstest[[1]], cstest[[2]])
unlist(cstest.sub)

chipseq documentation built on Nov. 8, 2020, 5:19 p.m.