Learn R Programming

cinaR (version 0.2.6)

normalizeConsensus: normalizeConsensus

Description

Normalizes consensus peak using different methods

Usage

normalizeConsensus(cp, norm.method = "cpm", log.option = FALSE)

Value

Normalized consensus peaks

Arguments

cp

bed formatted consensus peak matrix: CHR, START, STOP and raw peak counts (peaks by 3+samples)

norm.method

normalization method for consensus peaks

log.option

logical, log option for cpm function in edgeR

Examples

Run this code

set.seed(123)
cp <- matrix(rexp(200, rate=.1), ncol=20)

## using cpm function from `edgeR` package
cp.normalized <- normalizeConsensus(cp)

## quantile normalization option
cp.normalized <- normalizeConsensus(cp, norm.method = "quantile")

Run the code above in your browser using DataLab