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