dot-calcRelFreq: Convert to row-wise relative frequency

.calcRelFreqR Documentation

Convert to row-wise relative frequency

Description

Convert to row-wise relative frequency

Usage

.calcRelFreq(metagene, mode, naVal = 0)

Arguments

metagene

A matrix of read counts or a list of two matrices representing read counts in CDS start and end regions. Each row is a transcript, each column is a position, and value represents read counts in a transcript at a position.

mode

A numeric variable (1 or 2) indicating if metagene is a single matrix (mode is 1) or a list of two matrices (mode is 2).

naVal

A numeric variable to replace na with. (Default: 0).

Value

A matrix or a list of two matrices with values normalized as the row-wise relative frequency. When mode is 2, the row-wise total counts are calculated from both matrices.


nzhang89/RiboSeeker documentation built on April 15, 2022, 10:18 a.m.