scal_var_mat | R Documentation |
Generate a matrix of the scaled variance values
scal_var_mat(inp, batchvec = NULL)
inp |
corralm object or matrix; embedding to compute scaled variances |
batchvec |
vector; batch labels (can be numeric or char). Defaults to 'NULL', which is appropriate for using a corralm object. If using an embedding matrix for inp, then this argument must be given and length must correspond to number of rows in 'inp'. |
matrix of the scaled variance values by PC (batches in rows; PCs in columns)
dat <- matrix(rnorm(5000), ncol = 50) bv <- rep(seq(3),c(10,30,60)) scal_var_mat(dat, bv)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.