Standardise gene expression data by centring and scaling each gene.
.to_std_expr(e)Matrix with standardised expression values (mean=0, sd=1 for each gene)
Matrix of expression values with genes as rows and samples as columns
This function standardises each gene's expression profile by subtracting the mean and dividing by the standard deviation. Genes with zero or undefined variance are set to zero. This is useful for comparing expression patterns across genes with different absolute expression levels. # Standardise expression data # std_expr <- .to_std_expr(expression_matrix)