normFactor: Size factors for normalization by sequencing depth

View source: R/package.R

normFactorR Documentation

Size factors for normalization by sequencing depth

Description

This function calculate the relative abundance of samples, in essence accounting for different sequencing depths across different Ribo-seq experiments.

Usage

normFactor(x, condition)

Arguments

x

A matrix of mapped P-site positions.

condition

A vector of indicators. 1's stand for reference condition, 2's stand for target condtion, 0's represent replicates not invloved in the abundance estimation, if present.

Value

A vector of relative abundances.

Examples

data(data.binned)
x <- data.binned$YDR050C
condition <- c(2, 2, 1, 1)
normFactor(x, condition)

kerenli/RiboDiPA_updating documentation built on June 25, 2022, 9:50 p.m.