PCA is performed on cont_mat
, the matrix of multiple continuous
features. The first PC is returned, representing the dominant spatial
signature of the feature set. Its direction is negated if necessary so that
the majority of coefficients across features are positive (when the features
are highly correlated, this encourages spots with higher values to
represent areas of higher expression of the features).
multi_gene_pca(cont_mat)
A matrix()
with spots as rows and 2 or more continuous
variables as columns.
A numeric()
vector with one element per spot, summarizing the
multiple continuous variables.
Other functions for summarizing expression of multiple continuous variables simultaneously:
multi_gene_sparsity()
,
multi_gene_z_score()