Description Usage Arguments Details Value
May be useful in cases where calling Matrix() directly gives a "negative length vectors are not allowed" error.
1 | large_matrix_to_dgCMatrix(mat, chunk_size = 5000)
|
mat |
The matrix file to convert |
chunk_size |
The number of columns to read as a chunk. For ~30k genes, a chunk of 5000 (the default) is ~1GB in memory. |
This works through the matrix in column-based chunks becaues this is much faster for conversion to column-indexed dgCMatrices.
A dgCMatrix object in the same orientation as the matrix object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.