DPT matrix methods | R Documentation |
Treat DPT object as a matrix of cell-by-cell DPT distances.
## S4 method for signature 'DPT,index,index,logicalOrMissing'
x[i, j, ..., drop = TRUE]
## S4 method for signature 'DPT,index,missing,logicalOrMissing'
x[i, j, ..., drop = TRUE]
## S4 method for signature 'DPT,missing,index,logicalOrMissing'
x[i, j, ..., drop = TRUE]
## S4 method for signature 'DPT,missing,missing,logicalOrMissing'
x[i, j, ..., drop = TRUE]
## S4 method for signature 'DPT,index,index'
x[[i, j, ...]]
## S4 method for signature 'DPT'
nrow(x)
## S4 method for signature 'DPT'
ncol(x)
## S4 method for signature 'DPT'
dim(x)
x |
|
i , j |
Numeric or logical index. |
... |
ignored |
drop |
If |
[
returns a dense matrix or (if applicable and isTRUE(drop)
) a vector.
[[
returns single distance value
nrow
and ncol
return the number of cells
dim
returns c(n_cells, n_cells)
as.matrix.DPT
data(guo_norm)
dm <- DiffusionMap(guo_norm)
dpt <- DPT(dm)
set.seed(1)
plot(dpt[random_root(dpt), ], Biobase::exprs(guo_norm)['DppaI', ])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.