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


ataudt/chromstaR documentation built on Dec. 26, 2021, 12:07 a.m.