laneSubsample {chipseq} | R Documentation

## Subsample short read alignment locations

### Description

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

### Usage

    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

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

[Package chipseq version 1.40.0 Index]