createMetafeats#
Last Updated: Nov 17, 2023
Description#
This function creates an average metafeat/metagene/module for clusters.
Usage#
createMetafeats(
gobject,
spat_unit = NULL,
feat_type = NULL,
expression_values = c("normalized", "scaled", "custom"),
feat_clusters,
name = "metafeat",
return_gobject = TRUE
)
Arguments#
|
Giotto object |
|
spatial unit |
|
feature type |
|
expression values to use |
|
numerical vector with features as names |
|
name of the metagene results |
|
return giotto object |
Details#
An example for the ‘gene_clusters’ could be like this: cluster_vector = c(1, 1, 2, 2); names(cluster_vector) = c(‘geneA’, ‘geneB’, ‘geneC’, ‘geneD’)
Value#
giotto object