scaleCountMatrix: Normlaize Count Matrix

View source: R/scaleCountMatrix.R

scaleCountMatrixR Documentation

Normlaize Count Matrix

Description

Normlaize Count Matrix

Usage

scaleCountMatrix(obj, mat, cov, method)

Arguments

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")

Examples

data(demo.sp)
scaleCountMatrix(
obj=demo.sp, 
mat="gmat", 
cov=rowSums(demo.sp, mat="bmat"), 
method="RPM"
);


r3fang/SnapATAC documentation built on March 29, 2022, 4:33 p.m.