normalized_counts: Return a size-factor normalized and (optionally)...

View source: R/utils.R

normalized_countsR Documentation

Return a size-factor normalized and (optionally) log-transformed expression matrix

Description

Return a size-factor normalized and (optionally) log-transformed expression matrix

Usage

normalized_counts(
  cds,
  norm_method = c("log", "binary", "size_only"),
  pseudocount = 1
)

Arguments

cds

A CDS object to calculate normalized expression matrix from.

norm_method

String indicating the normalization method. Options are "log" (Default), "binary" and "size_only".

pseudocount

A pseudocount to add before log transformation. Ignored if norm_method is not "log". Default is 1.

Value

Size-factor normalized, and optionally log-transformed, expression matrix.

Examples

  
    cds <- load_a549()
    normalized_matrix <- normalized_counts(cds)
  


cole-trapnell-lab/monocle3 documentation built on May 24, 2022, 5:25 p.m.