get_kl_df: Calculate KL-divergence from a data frame of rust expected...

get_kl_dfR Documentation

Calculate KL-divergence from a data frame of rust expected and actual scores

Description

Calculate KL-divergence from a data frame of rust expected and actual scores

Usage

get_kl_df(metacodondf, anno)

Arguments

metacodondf

a data frame with metacodon info

anno

An annotation object

Value

A data frame with expected and actual rust score per position in window, codon, readlength

Author(s)

Dermot Harnett, dermot.p.harnett@gmail.com

Examples

data(chr22_anno)
data(rpfs)
data(offsets_df)
covgrs <- list(sample1 = rpfs)
# note this doesn't work that well on a small subset
kl_df <- get_kl_df(metacodondf, chr22_anno)

zslastman/RiboStan documentation built on June 12, 2024, 1:59 a.m.