R/store_parquet.R
STlist_to_disk.RdConverts an in-memory STlist into one backed by parquet files, so data larger than memory can be held and read in slices.
STlist_to_disk(x = NULL, root = NULL, overwrite = FALSE)an STlist whose count slots are on-disk backed
Opt-in and reversible. @counts and @tr_counts elements are replaced by
manifests describing per-sample parquet files; every other slot is untouched.
All package functions continue to work, because slot reads go through internal
accessors that materialize on demand – so this trades memory for I/O rather
than changing results.
Matrices are stored in COO (long) form, one file per sample per slot, sorted by
gene then cell. STlist_to_memory() reverses the conversion.
Note the store is a directory of files, not part of the R object. An STlist
saved with saveRDS() records paths, so moving or deleting root breaks it;
validate_store() reports that rather than failing obscurely later.