MergeMtx: Function to Merge sparse Matrix

View source: R/General_functions.R

MergeMtxR Documentation

Function to Merge sparse Matrix

Description

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

Usage

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))
Donor4_HSC_HPC_BMMC.RNA.seurat<-GEM_Wrapper(Donor4_HSC_HPC_BMMC.Mtx)

chenweng1991/scMitoTracing documentation built on July 2, 2024, 8:41 p.m.