Merge_Sparse_Data_All {scCustomize} | R Documentation |
Merge a list of Sparse Matrices
Description
Enables easy merge of a list of sparse matrices
Usage
Merge_Sparse_Data_All(
matrix_list,
add_cell_ids = NULL,
prefix = TRUE,
cell_id_delimiter = "_"
)
Arguments
matrix_list |
list of matrices to merge. |
add_cell_ids |
a vector of sample ids to add as prefix to cell barcode during merge. |
prefix |
logical. Whether |
cell_id_delimiter |
The delimiter to use when adding cell id prefix/suffix. Default is "_". |
Value
A sparse Matrix
References
Original function is part of LIGER package as non-exported function https://github.com/welch-lab/liger/blob/master/R/utilities.R (License: GPL-3). Function was modified for use in scCustomize (add progress bar, prefix vs. suffix, and delimiter options).
Examples
## Not run:
data_list <- Read10X_GEO(...)
merged <- Merge_Sparse_Data_All(matrix_list = data_list, add_cell_ids = names(data_list),
prefix = TRUE, cell_id_delimiter = "_")
## End(Not run)
[Package scCustomize version 2.1.2 Index]