normalize_collection: Normalize collection table

View source: R/collection_helpers.R

normalize_collectionR Documentation

Normalize collection table

Description

Normalize collection table

Usage

normalize_collection(
  table,
  normalization,
  lib_sizes = NULL,
  kmer = 1L,
  add_logscore = TRUE,
  split_by_frame = FALSE
)

Arguments

table

a data.table in long format

normalization

a character string, which mode, for options see RiboCrypt:::normalizations

lib_sizes

named integer vector, default NULL. If given will do a pre tpm normalization for full library sizes

kmer

integer, default 1L (off), if > 1 will smooth out signal with sliding window size kmer.

add_logscore

logical, default TRUE, adds a log(score + 1) to table

split_by_frame

logical, default FALSE For kmer sliding window, should it split by frame

Value

a data.table of normalized results


m-swirski/RiboCrypt documentation built on Nov. 9, 2024, 11:40 p.m.