multi_gene_sparsity: Combine multiple continuous variables by proportion of...

View source: R/multi_gene_sparsity.R

multi_gene_sparsityR Documentation

Combine multiple continuous variables by proportion of positive values

Description

To summarize multiple features, the proportion of features with positive values for each spot is computed.

Usage

multi_gene_sparsity(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_z_score()


LieberInstitute/spatialLIBD documentation built on Nov. 4, 2024, 11:57 a.m.