select_offsets: Get a dataframe with p-site offsets from a datafram of KL...

select_offsetsR Documentation

Get a dataframe with p-site offsets from a datafram of KL divergence

Description

Get a dataframe with p-site offsets from a datafram of KL divergence

Usage

select_offsets(kl_df, method = "a_max")

Arguments

kl_df

dataframe with KL divergence per readlength, position in window around codon

method

means by which to select best offfset currently only possible value is a_max - assumes the maximum KL divergence occurs under the A site

Value

a dataframe with p-site offsets per readlength, sample

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(covgrs, chr22_anno) #'
kl_offsets <- select_offsets(kl_df)

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