This function allows you to input a list of sparse matrix and merge by rownames, return a new sparse matrix

MergeMtx(mtx.list, postfix)

Arguments

mtx.list

A list of sparse matrix to be merged

postfix

a vector of postfix (Usually are numbers that added at the end of cell names). Better be consistent with a merged redeemR object orders

Value

new sparse matrix

Examples

Donor4_HSC_HPC_BMMC.Mtx<-MergeMtx(list(Donor04_BMMC_Multiome_wrapper$seurat@assays$RNA@counts,Donor04_HPC_Multiome_wrapper$seurat@assays$RNA@counts,Donor04_HSC_Multiome_wrapper$seurat@assays$RNA@counts),c(3,2,1))
#> Error in is.data.frame(x): object 'Donor04_BMMC_Multiome_wrapper' not found
Donor4_HSC_HPC_BMMC.RNA.seurat<-GEM_Wrapper(Donor4_HSC_HPC_BMMC.Mtx)
#> Loading required package: Seurat
#> Attaching SeuratObject
#> Attaching sp
#> Error in CreateSeuratObject(counts = mtx, project = exp, min.cells = 3,     min.features = 200): object 'Donor4_HSC_HPC_BMMC.Mtx' not found