createMetagenes | R Documentation |
This function creates an average metagene for gene clusters.
createMetagenes(
gobject,
spat_unit = NULL,
expression_values = c("normalized", "scaled", "custom"),
gene_clusters,
name = "metagene",
return_gobject = TRUE
)
gobject |
Giotto object |
spat_unit |
spatial unit |
expression_values |
expression values to use |
gene_clusters |
numerical vector with genes as names |
name |
name of the metagene results |
return_gobject |
return giotto object |
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')
giotto object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.