get_ritpms: get_ritpms

get_ritpmsR Documentation

get_ritpms

Description

This function takes in a sparse matrix, and then samples a single value from each column, with sampling weights within each column equal to the columns values

Usage

get_ritpms(psites, anno)

Arguments

psites

A GRanges object containing RPFs

anno

An annotation object with a gene-transcript table

Value

a vector of normalized footprint densities

Examples

data(chr22_anno)
data(rpfs)
data(offsets_df)
data(ms_df)

psites <- get_psite_gr(rpfs, offsets_df, chr22_anno)
# now, use Stan to estimate normalized p-site densities for our data
ritpms <- get_ritpms(psites, chr22_anno)

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