Create a new ingres
object.
Arguments
- 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
tbl_graph
representing our network of interest.
Examples
# 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
#> An ingres object
#> --------------------
#> 16314 features across 90 samples
#> 9 clusters
#> Its Boolean network has 30 nodes
#> Viper not performed