13a1ce5c |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mergeSCEColData.R
\name{mergeSCEColData}
\alias{mergeSCEColData}
\title{Merging colData from two singleCellExperiment objects}
\usage{
|
64d3a71f |
mergeSCEColData(inSCE1, inSCE2, id1 = "column_name", id2 = "column_name")
|
13a1ce5c |
}
\arguments{
|
fa0ed498 |
\item{inSCE1}{Input SingleCellExperiment object. The function will output this
singleCellExperiment object with a combined colData from inSCE1 and inSCE2.}
|
13a1ce5c |
|
fa0ed498 |
\item{inSCE2}{Input SingleCellExperiment object. colData from this object
will be merged with colData from inSCE1 and loaded into inSCE1.}
|
13a1ce5c |
|
bd29211a |
\item{id1}{Character vector. Column in colData of inSCE1 that will be
|
fa0ed498 |
used to combine inSCE1 and inSCE2. Default "column_name"}
|
13a1ce5c |
|
fa0ed498 |
\item{id2}{Character vector. Column in colData of inSCE2 that will be
used to combine inSCE1 and inSCE2. Default "column_name"}
|
13a1ce5c |
}
\value{
|
bd29211a |
SingleCellExperiment object containing combined colData from
|
fa0ed498 |
both singleCellExperiment for samples in inSCE1.
|
13a1ce5c |
}
\description{
|
bd29211a |
Merges colData of the singleCellExperiment objects
obtained from the same dataset which contain differing colData.
|
13a1ce5c |
(i.e. raw data and filtered data)
}
\examples{
|
169211d4 |
sce1 <- importCellRanger(
|
b3ed78d5 |
cellRangerDirs = system.file("extdata/", package = "singleCellTK"),
sampleDirs = "hgmm_1k_v3_20x20",
sampleNames = "hgmm1kv3",
dataType = "filtered")
|
42b943b7 |
data(scExample)
sce2 <- sce
|
fa0ed498 |
sce <- mergeSCEColData(inSCE1 = sce1, inSCE2 = sce2, id1 = "column_name", id2 = "column_name")
|
13a1ce5c |
}
|