balanceD: Balance statistic: Andersson's D.

Description Usage Arguments Value Examples

View source: R/enhancers.R

Description

Calculates the D-statistics from Andersson et al the observed plus/minus downstream signals. The D statistics is rescaled from -1:1 to 0:1 so it can be used for slice-reduce identification of bidirectional sites.

Usage

1
balanceD(PD, MD, PU, MU)

Arguments

PD

Plus-Downstream signal

MD

Minus-Downstream signal

PU

Plus-Upstream signal

MU

Plus-Upstream signal

Value

Balance score of the same class as inputs.

Examples

1
2
3
4
5
# Unbalanced
balanceD(2, 3, 1, 0)

# Balanced
balanceD(3, 3, 0, 0)

MalteThodberg/CAGEfightR documentation built on Oct. 24, 2018, 12:10 p.m.