Subsample short read alignment locations

Share:

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)