balanceD {CAGEfightR} | R Documentation |
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.
balanceD(PD, MD, PU, MU)
PD |
Plus-Downstream signal |
MD |
Minus-Downstream signal |
PU |
Plus-Upstream signal |
MU |
Plus-Upstream signal |
Balance score of the same class as inputs.
# Unbalanced balanceD(2, 3, 1, 0) # Balanced balanceD(3, 3, 0, 0)