scHOT_buildFromMatrix | R Documentation |
Create scHOT object from a matrix
scHOT_buildFromMatrix(
mat,
cellData = NULL,
positionType = NULL,
positionColData = NULL
)
mat |
A matrix with rows for genes and columns for cells |
cellData |
A dataframe or DataFrame object with rows for cells |
positionType |
A string indicating the position type, either "trajectory" or "spatial" |
positionColData |
Strings indicate the position information stored in colData. If positionType is "trajectory" then positionColData should be a sortable vector if positionType is "spatial" then positionColData should be a matrix type object. |
A scHOT object
dat <- rbind(rnorm(50), rnorm(50), rnorm(50))
colnames(dat) <- paste0("cell_", 1:ncol(dat))
rownames(dat) <- c("gene_1","gene_2", "gene_2")
scHOT <- scHOT_buildFromMatrix(dat, cellData = data.frame(1:ncol(dat)))
scHOT
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.