View source: R/scaleCountMatrix.R
scaleCountMatrix | R Documentation |
Normlaize Count Matrix
scaleCountMatrix(obj, mat, cov, method)
obj |
A snap object |
mat |
Matrix to be normalized c("gmat", "bmat", "pmat") |
cov |
A numeric array as cell coverage to normalize the count matrix |
method |
Method to normalize the matrix c("logRPM", "RPM", "log") |
data(demo.sp) scaleCountMatrix( obj=demo.sp, mat="gmat", cov=rowSums(demo.sp, mat="bmat"), method="RPM" );
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.