R/mergeSCEColData.R
mergeSCEColData.Rd
Merges colData of the singleCellExperiment objects obtained from the same dataset which contain differing colData. (i.e. raw data and filtered data)
mergeSCEColData(inSCE1, inSCE2, id1 = "column_name", id2 = "column_name")
Input SingleCellExperiment object. The function will output this singleCellExperiment object with a combined colData from inSCE1 and inSCE2.
Input SingleCellExperiment object. colData from this object will be merged with colData from inSCE1 and loaded into inSCE1.
Character vector. Column in colData of inSCE1 that will be used to combine inSCE1 and inSCE2. Default "column_name"
Character vector. Column in colData of inSCE2 that will be used to combine inSCE1 and inSCE2. Default "column_name"
SingleCellExperiment object containing combined colData from both singleCellExperiment for samples in inSCE1.
sce1 <- importCellRanger(
cellRangerDirs = system.file("extdata/", package = "singleCellTK"),
sampleDirs = "hgmm_1k_v3_20x20",
sampleNames = "hgmm1kv3",
dataType = "filtered")
#> Metrics summary file (metrics_summary.csv) not found for sample: hgmm1kv3
data(scExample)
sce2 <- sce
sce <- mergeSCEColData(inSCE1 = sce1, inSCE2 = sce2, id1 = "column_name", id2 = "column_name")