normalizeGiotto
¶
normalizeGiotto
Description¶
fast normalize and/or scale expresion values of Giotto object
Usage¶
normalizeGiotto(
gobject,
norm_methods = c("standard", "osmFISH"),
library_size_norm = TRUE,
scalefactor = 6000,
log_norm = TRUE,
log_offset = 1,
logbase = 2,
scale_genes = T,
scale_cells = T,
scale_order = c("first_genes", "first_cells"),
verbose = F
)
Arguments¶
Argument |
Description |
---|---|
|
giotto object |
|
normalization method to use |
|
normalize cells by library size |
|
scale factor to use after library size normalization |
|
transform values to log-scale |
|
offset value to add to expression matrix, default = 1 |
|
log base to use to log normalize expression values |
|
z-score genes over all cells |
|
z-score cells over all genes |
|
order to scale genes and cells |
|
be verbose |
Details¶
Currently there are two ‘methods’ to normalize your raw counts data.
A. The standard method follows the standard protocol which can be adjusted using the provided parameters and follows the following order: list()
Data normalization for total library size and scaling by a custom scale-factor.
Log transformation of data.
Z-scoring of data by genes and/or cells.
B. The normalization method as provided by the osmFISH paper is also implemented: list()
list(“1. First normalize genes, for each gene divide the counts by the total gene count andn”, “multiply by the total number of genes.”)
list(“2. Next normalize cells, for each cell divide the normalized gene counts by the totaln”, “counts per cell and multiply by the total number of cells.”)
This data will be saved in the Giotto slot for custom expression.
Value¶
giotto object
Examples¶
data(mini_giotto_single_cell)
norm_gobject = normalizeGiotto(mini_giotto_single_cell)