Skip to contents

By default this procedure will only impact counts in the bins that are variable length (for example tail ends of chromosomes).

Usage

length_normalize(
  sce,
  assay_name = "counts",
  assay_to = "counts_lenNorm",
  binwidths = width(rowRanges(sce)),
  by_factor = getmode(binwidths),
  verbose = FALSE
)

Arguments

sce

SCE object

assay_name

Name of assay to normalize

assay_to

Name of assay to save

binwidths

Vector of binwidths

by_factor

Multiplication factor for counts

verbose

Print verbose (TRUE/FALSE)

Value

An sce object with counts length normalized in assay(sce, 'counts_permb')