View source: R/snap-utilities.R
addBmatToSnap | R Documentation |
This function takes a snap object as input and add the cell-by-bin matrix to the existing snap object.
addBmatToSnap(obj, bin.size, do.par, num.cores)
obj |
A snap object to add cell-by-bin matrix. |
bin.size |
Cell-by-bin matrix with bin size of bin.size will be added to snap object. |
do.par |
A logical variable indicates whether use multiple processors [FALSE]. |
num.cores |
Number of processors to use [1]. |
Return a snap object
file.name = system.file("extdata", "demo.snap", package = "SnapATAC"); demo.sp = createSnap(file.name, sample="demo", do.par=FALSE); showBinSizes(file.name); demo.sp = addBmatToSnap(demo.sp, bin.size=100000, do.par=FALSE);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.