symmetrizeFracB: symmetrize an allele B fraction signal

Description Usage Arguments Value Author(s) Examples

View source: R/getFracBSignal.R

Description

The allele B fraction signal is the ratio between the signal from the allele B and the total signal. The symmetrization of the fraction allele B signal x is : 2*abs(x-0.5).

Usage

1

Arguments

fracB

a vector containing an allele B fraction signal.

Value

a vector containing the symmetrized signal.

Author(s)

Quentin Grimonprez

Examples

1
2
3
4
5
signalA=abs(rnorm(100))
signalB=abs(rnorm(100))
signalFracB=signalA/(signalA+signalB)

symFracB=symmetrizeFracB(signalFracB)

MPAgenomics documentation built on March 30, 2021, 5:13 p.m.