subsample: Normalize read counts

Description Usage Arguments Value Author(s)

View source: R/subsample.R

Description

Normalize read counts to a given read depth. Reads counts are randomly removed from the input to match the specified read depth.

Usage

1
subsample(binned.data, sample.reads)

Arguments

binned.data

A GRanges-class object with meta data column 'reads' that contains the read count.

sample.reads

The number of reads that will be retained.

Value

A GRanges-class object with downsampled read counts.

Author(s)

Aaron Taudt


chromstaR documentation built on May 2, 2020, 2:01 a.m.