createPmat: Create Cell-by-Peak Matrix

View source: R/createPmat.R

createPmatR Documentation

Create Cell-by-Peak Matrix

Description

This function takes a snap object and peak list as input and creates cell-by-peak matrix

Usage

createPmat(obj, peaks, ncell.chunk = 20, do.par = TRUE, num.cores = 1)

Arguments

obj

A snap object.

peaks

A GRanges object contains the peaks

ncell.chunk

A numeric class that indicates the number of cells to calculate per processing core [20].

do.par

A logical variable indicates if run this using multiple processors [TRUE].

num.cores

Number of processers to use [1].

Value

Returns a snap objects contains cell-by-peak matrix


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