normFactor {RiboDiPA} | R 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)

[Package RiboDiPA version 1.2.0 Index]