View source: R/snap-utilities.R
| addPmatToSnap | R Documentation |
This function takes a snap object as input and add the cell-by-peak matrix to the existing snap object.
addPmatToSnap(obj, do.par, num.cores)
obj |
A snap object. |
do.par |
A logical varaible indicates whether to use multiple processors [FALSE]. |
num.cores |
Number of processors to use [1]. |
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);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.