utils_big_as.matrix: Convert a large sparse matrix into a dense matrix without...

Description Usage Arguments Value

View source: R/utils.R

Description

Avoid the following error . Error in asMethod(object) : . Cholmod error 'problem too large' at file ../Core/cholmod_dense.c, . by slicing the matrix into submatrices, converting and cbinding them . Increases number of slices until they succeed.

Usage

1
utils_big_as.matrix(sparseMat, n_slices_init = 1, verbose = T)

Arguments

sparseMat

a big sparse matrix of a type coercible to dense Matrix::Matrix

n_slices_init

initial number of slices. Default value 1, i.e. whole matrix

verbose

print progress

Value

a dense matrix


CBMR-Single-Cell-Omics-Platform/SCOPfunctions documentation built on May 29, 2021, 3:52 p.m.