scHOT_buildFromMatrix.RdCreate 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