Column-concatenates a list of matrices and writes them as a single
.spz file. All matrices must have the same number of rows.
Usage
st_write_list(
x,
path,
obs = NULL,
var = NULL,
chunk_bytes = 6.4e+07,
chunk_cols = NULL,
include_transpose = TRUE,
precision = "auto",
threads = 0L,
verbose = FALSE
)Arguments
- x
A list of
dgCMatrixobjects (or coercible). All must have identicalnrow.- path
Output
.spzpath.- obs
Optional data.frame of cell metadata (
nrow== total cols).- var
Optional data.frame of gene metadata (
nrow== nrow of mats).- chunk_bytes
Target bytes per chunk. Default 64 MB.
- chunk_cols
Explicit column count per chunk. Overrides
chunk_bytes.- include_transpose
Logical. Default
TRUE.- precision
Value precision. Default
"auto".- threads
Integer. 0 = all threads.
- verbose
Logical.
Examples
if (FALSE) { # \dontrun{
mats <- list(mat1, mat2)
st_write_list(mats, "combined.spz")
} # }