pwmDivergence: PWM divergence

Description Usage Arguments Value

View source: R/diffSeqLogoSupport.R

Description

Counts PWM divergence as sum of divergencies of their columns.

Usage

1
pwmDivergence(pwm_left, pwm_right, divergence = shannonDivergence)

Arguments

pwm_left

is a PWM representation in type of matrix

pwm_right

is a PWM representation in type of matrix. The result is symmetric on pwm_left and pwm_right

divergence

is a Divergence function on columns.

Value

float - sum of divergences


DiffLogo documentation built on Nov. 8, 2020, 6:09 p.m.