Description Usage Arguments Details Value Examples
Combine the data from several SingleCellExperiment objects and produce some basic plots comparing them to a reference.
1 2 |
sces |
named list of SingleCellExperiment objects to combine and compare. |
ref |
string giving the name of the SingleCellExperiment to use as the reference |
point.size |
size of points in scatter plots. |
point.alpha |
opacity of points in scatter plots. |
fits |
whether to include fits in scatter plots. |
colours |
vector of colours to use for each dataset. |
This function aims to look at the differences between a reference SingleCellExperiment and one or more others. It requires each SingleCellExperiment to have the same dimensions. Properties are compared by ranks, for example when comparing the means the values are ordered and the differences between the reference and another dataset plotted. A series of Q-Q plots are also returned.
The returned list has five items:
ReferenceThe SingleCellExperiment used as the reference.
RowDataCombined feature data from the provided SingleCellExperiments.
ColDataCombined column data from the provided SingleCellExperiments.
PlotsDifference plots
MeansBoxplot of mean differences.
VariancesBoxplot of variance differences.
MeanVarScatter plot showing the difference from the reference variance across expression ranks.
LibraeySizesBoxplot of the library size differences.
ZerosGeneBoxplot of the differences in the percentage of each gene that is zero.
ZerosCellBoxplot of the differences in the percentage of each cell that is zero.
MeanZerosScatter plot showing the difference from the reference percentage of zeros across expression ranks.
QQPlotsQuantile-Quantile plots
MeansQ-Q plot of the means.
VariancesQ-Q plot of the variances.
LibrarySizesQ-Q plot of the library sizes.
ZerosGeneQ-Q plot of the percentage of zeros per gene.
ZerosCellQ-Q plot of the percentage of zeros per cell.
The plots returned by this function are created using
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 ggplot.
List containing the combined datasets and plots.
1 2 3 4 5 | sim1 <- splatSimulate(nGenes = 1000, batchCells = 20)
sim2 <- simpleSimulate(nGenes = 1000, nCells = 20)
difference <- diffSCEs(list(Splat = sim1, Simple = sim2), ref = "Simple")
names(difference)
names(difference$Plots)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.