Skip to content
Snippets Groups Projects
compareSCESets.Rd 2.18 KiB
Newer Older
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compare.R
\name{compareSCESets}
\alias{compareSCESets}
\title{Compare SCESet objects}
\usage{
compareSCESets(sces, point.size = 0.1, point.alpha = 0.1, fits = TRUE,
  colours = NULL)
}
\arguments{
\item{sces}{named list of SCESet objects to combine and compare.}

\item{point.size}{size of points in scatter plots.}

\item{point.alpha}{opacity of points in scatter plots.}

\item{fits}{whether to include fits in scatter plots.}

\item{colours}{vector of colours to use for each dataset.}
}
\value{
List containing the combined datasets and plots.
}
\description{
Combine the data from several SCESet objects and produce some basic plots
Luke Zappia's avatar
Luke Zappia committed
comparing them.
}
\details{
Luke Zappia's avatar
Luke Zappia committed
The returned list has three items:

\describe{
    \item{\code{FeatureData}}{Combined feature data from the provided
    SCESets.}
    \item{\code{PhenoData}}{Combined pheno data from the provided SCESets.}
    \item{\code{Plots}}{Comparison plots
        \describe{
            \item{\code{Means}}{Boxplot of mean distribution.}
            \item{\code{Variances}}{Boxplot of variance distribution.}
            \item{\code{MeanVar}}{Scatter plot with fitted lines showing the
            mean-variance relationship.}
            \item{\code{LibraySizes}}{Boxplot of the library size
            distribution.}
            \item{\code{ZerosGene}}{Boxplot of the percentage of each gene
            that is zero.}
            \item{\code{ZerosCell}}{Boxplot of the percentage of each cell
            that is zero.}
Luke Zappia's avatar
Luke Zappia committed
            \item{\code{MeanZeros}}{Scatter plot with fitted lines showing
            the mean-zeros relationship.}
    }
  }
}

The plots returned by this function are created using
\code{\link[ggplot2]{ggplot}} and are only a sample of the kind of plots you
might like to consider. The data used to create these plots is also returned
and should be in the correct format to allow you to create further plots
using \code{\link[ggplot2]{ggplot}}.
}
\examples{
Luke Zappia's avatar
Luke Zappia committed
sim1 <- splatSimulate(nGenes = 1000, batchCells = 20)
sim2 <- simpleSimulate(nGenes = 1000, nCells = 20)
comparison <- compareSCESets(list(Splat = sim1, Simple = sim2))
names(comparison)
names(comparison$Plots)
}