balanceBC: Balance statistic: Bhattacharyya coefficient (BC)

Description Usage Arguments Value Examples

View source: R/enhancers.R

Description

Calculates the Bhattacharyya coefficient from observed plus/minus upstream/downstream signals to a perfect bidirectional site, where plus-downstream = 50

Usage

1
balanceBC(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
balanceBC(2, 3, 1, 0)

# Balanced
balanceBC(3, 3, 0, 0)

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