COTAN_Legacy | R Documentation |
scCOTAN
-class and related symmetric matrix <-> vector
conversionsA class and some functions related to the V1
version of the
COTAN
package
clustersDeltaExpression(objCOTAN, clName = "", clusters = NULL)
vec2mat_rfast(x, genes = "all")
mat2vec_rfast(mat)
objCOTAN |
a |
clName |
The name of the clusterization. If not given the last available clusterization will be used, as it is probably the most significant! |
clusters |
A clusterization to use. If given it will take precedence
on the one indicated by |
x |
a |
genes |
an array with all wanted genes or the string |
mat |
a square (possibly symmetric) matrix with all genes as row and column names. |
Define the legacy scCOTAN
-class
Automatically converts an object from class scCOTAN
into COTAN
Explicitly converts an object from class COTAN
into scCOTAN
clustersDeltaExpression()
is a legacy function now superseded by
DEAOnClusters()
. It estimates the change in genes' expression inside the
cluster compared to the average situation in the data set.
This is a legacy function related to old scCOTAN
objects. Use the
more appropriate Matrix::dspMatrix
type for similar functionality.
mat2vec_rfast
converts a compacted symmetric matrix (that is an array)
into a symmetric matrix.
This is a legacy function related to old scCOTAN
objects. Use the
more appropriate Matrix::dspMatrix
type for similar functionality.
vec2mat_rfast
converts a symmetric matrix into a compacted symmetric
matrix. It will forcibly make its argument symmetric.
a scCOTAN
object
clustersDeltaExpression()
returns a data.frame
with the
\nu
weighted discrepancy of the expression of each gene within the
cluster against the corresponding model expectations
mat2vec_rfast
returns a list
formed by two arrays:
"genes"
with the unique gene names,
"values"
with all the values.
vec2mat_rfast
returns the reconstructed symmetric matrix
raw
ANY
. To store the raw data matrix
raw.norm
ANY
. To store the raw data matrix divided for the cell
efficiency estimated (nu)
coex
ANY
. The coex matrix
nu
vector
.
lambda
vector
.
a
vector
.
hk
vector
.
n_cells
numeric
.
meta
data.frame
.
yes_yes
ANY
. Unused and deprecated. Kept for backward compatibility
only
clusters
vector
.
cluster_data
data.frame
.
v <- list("genes" = paste0("gene_", c(1:9)), "values" = c(1:45))
M <- vec2mat_rfast(v)
all.equal(rownames(M), v[["genes"]])
all.equal(colnames(M), v[["genes"]])
genes <- paste0("gene_", sample.int(ncol(M), 3))
m <- vec2mat_rfast(v, genes)
all.equal(rownames(m), v[["genes"]])
all.equal(colnames(m), genes)
v2 <- mat2vec_rfast(M)
all.equal(v, v2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.