Skip to main content

Module normalization

Module normalization 

Source
Expand description

Count normalization for RNA-seq and related assays.

All functions operate on row-major &[f64] slices with dimensions (n_genes, n_samples), matching cyanea_omics::ExpressionMatrix layout.

  • cpm — Counts per million
  • tpm — Transcripts per million (requires gene lengths)
  • fpkm — Fragments per kilobase of transcript per million mapped reads
  • size_factors — DESeq2-style median-of-ratios normalization factors
  • normalize_by_size_factors — Divide counts by per-sample size factors

Functions§

cpm
Counts per million: CPM_ij = count_ij / library_size_j * 1e6.
fpkm
Fragments per kilobase of transcript per million mapped reads.
normalize_by_size_factors
Divide each count by the corresponding sample’s size factor.
size_factors
DESeq2-style size factors via the median-of-ratios method (Anders & Huber 2010).
tpm
Transcripts per million.