createIngresObject | R Documentation |
ingres
object.Create a new ingres
object.
createIngresObject(expression.matrix, idents, network.genes, network)
expression.matrix |
A single-cell expression matrix, with cells in rows and genes in columns. |
idents |
A data frame with a column for cell barcode and another column for the corresponding cluster or subpopulation. |
network.genes |
A data frame with a column for node names and another column for the corresponding entrez IDs. |
network |
A object of class |
An ingres
object.
# Get expression matrix from small_blca_wang for convenience, but it can be # any single-cell expression matrix, from any source. Same for idents. expression.matrix = as.matrix(Seurat::GetAssayData( small_blca_wang, assay = "RNA", slot = "data" )) idents = data.frame( cell = names(Seurat::Idents(small_blca_wang)), cluster = as.character(Seurat::Idents(small_blca_wang)), check.names = FALSE ) ing = createIngresObject(expression.matrix, idents, network_genes, network) ing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.