shannon_entropy.Rd
This function was amended from the scEntropy python codes (https://github.com/jzlei/scEntropy) provided by https://www.worldscientific.com/doi/abs/10.1142/S1793048020500010
shannon_entropy(
seurat_obj,
ref_vec = NULL,
method = "predefined",
check_log2 = TRUE,
scale = FALSE
)
A Seurat object
Optional numeric vector, reference cell expression vector
Character string, method for generating reference vector. It must be either "predefined" or "RCSA".
Logical, whether to check and perform log2 transformation if necessary
Normalize the entropy values to 0-1 range
Numeric vector, Shannon entropy values relative to the reference