Learn R Programming

SnapATAC (version 1.0.0)

createGmatFromMat: Create Cell-by-Gene Matrix

Description

This function takes a snap object and gene list as input and creates cell-by-gene matrix

Usage

createGmatFromMat(obj, input.mat, genes, do.par, num.cores)

Arguments

obj

A snap object.

input.mat

Input matrix for calculating cell-by-gene matrix.

genes

A GRanges object contains the gene annotation with name as gene name.

do.par

A logical variable indicates if run this using multiple processors [TRUE].

num.cores

Number of processers to use [1].

Value

Returns a snap objects contains cell-by-gene matrix stored in "@gmat"