Learn R Programming

SnapATAC (version 1.0.0)

addGmatToSnap: 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

Run this code
# NOT RUN {
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);

# }

Run the code above in your browser using DataLab