colMeans-methods: colMeans for snap objects

colMeansR Documentation

colMeans for snap objects

Description

This function takes a snap object and returns the column means of its count matrix.

Usage

## S4 method for signature 'snap'
colMeans(x, mat = c("bmat", "pmat", "gmat"), na.rm = TRUE)

Arguments

x

A snap object

mat

A charater object indicates what matrix slot to use c("bmat", "pmat", "gmat").

na.rm

A logical variable indicates wether to remove NA in the matrix.

Examples

data(demo.sp);
a = colMeans(demo.sp, mat="bmat");
b = colMeans(demo.sp, mat="pmat");
d = colMeans(demo.sp, mat="gmat");


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