asSparse: Convert Matrix to Sparse Matrix

View source: R/utils.R

asSparseR Documentation

Convert Matrix to Sparse Matrix

Description

Convert Matrix to Sparse Matrix

Usage

asSparse(mat, zero_percent = 0.7)

Arguments

mat

Expression data. A d x M matrix with d rows of features and M columns of data points (cells).

zero_percent

Zero-entry percentage threshold. If the number of zero entries in the returned matrices is above this number, a sparse matrix will be returned. Default is 0.7 aka 70%.

Value

Returns a regular or sparse matrix.


stevexniu/scMatchmaker documentation built on June 2, 2022, 12:35 p.m.