Learn R Programming

SnapATAC (version 1.0.0)

scaleCountMatrix: 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

Run this code
# NOT RUN {
data(demo.sp)
scaleCountMatrix(
obj=demo.sp, 
mat="gmat", 
cov=rowSums(demo.sp, mat="bmat"), 
method="RPM"
);

# }

Run the code above in your browser using DataLab