addGmatToSnap: Add cell-by-gene matrix

View source: R/snap-utilities.R

addGmatToSnapR Documentation

Add cell-by-gene matrix

Description

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

Usage

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

Arguments

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.

Value

Return a snap object

Examples

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);


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