multi_gene_z_score: Combine multiple continuous variables by averaging Z scores

View source: R/multi_gene_z_score.R

multi_gene_z_scoreR Documentation

Combine multiple continuous variables by averaging Z scores

Description

To summarize multiple features, each is normalized to represent a Z-score. Scores are averaged to return a single vector.

Usage

multi_gene_z_score(cont_mat)

Arguments

cont_mat

A matrix() with spots as rows and 2 or more continuous variables as columns.

Value

A numeric() vector with one element per spot, summarizing the multiple continuous variables.

Author(s)

Nicholas J. Eagles

See Also

Other functions for summarizing expression of multiple continuous variables simultaneously: multi_gene_pca(), multi_gene_sparsity()


LieberInstitute/spatialLIBD documentation built on Dec. 19, 2024, 7:12 p.m.