createGmatFromMat: Create Cell-by-Gene Matrix

View source: R/createGmat.R

createGmatFromMatR Documentation

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"


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