addPmatToSnap: Add cell-by-peak matrix

View source: R/snap-utilities.R

addPmatToSnapR Documentation

Add cell-by-peak matrix

Description

This function takes a snap object as input and add the cell-by-peak matrix to the existing snap object.

Usage

addPmatToSnap(obj, do.par, num.cores)

Arguments

obj

A snap object.

do.par

A logical varaible indicates whether to use multiple processors [FALSE].

num.cores

Number of processors to use [1].

Examples

file.name = system.file("extdata", "demo.snap", package = "SnapATAC");
demo.sp = createSnap(file.name, sample="demo", do.par=FALSE);
showBinSizes(file.name);
demo.sp = addPmatToSnap(demo.sp, do.par=FALSE);


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