Nothing
### =========================================================================
### SingleCellLoomExperiment objects
### -------------------------------------------------------------------------
###
#' @import SingleCellExperiment
#' @importFrom SingleCellExperiment SingleCellExperiment
#' @export
setClass('SingleCellLoomExperiment',
contains=c('SingleCellExperiment', 'RangedLoomExperiment')
)
### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### Constructor.
###
.new_SingleCellLoomExperiment <- function(sce, colGraphs, rowGraphs)
{
new('SingleCellLoomExperiment', sce, colGraphs=colGraphs, rowGraphs=rowGraphs)
}
#' @export
SingleCellLoomExperiment <-
function(..., colGraphs=LoomGraphs(), rowGraphs=LoomGraphs())
{
te <- list(...)
if (length(te) > 0 && is(te[[1]], 'SingleCellExperiment'))
sce <- te[[1]]
else
sce <- SingleCellExperiment(...)
.new_SingleCellLoomExperiment(sce,
colGraphs=.change.nnode(colGraphs, ncol(sce)),
rowGraphs=.change.nnode(rowGraphs, nrow(sce)))
}
### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### Coercion.
###
.from_SingleCellExperiment_to_SingleCellLoomExperiment <- function(from)
{
.new_SingleCellLoomExperiment(from,
colGraphs=LoomGraphs(),
rowGraphs=LoomGraphs())
}
setAs('SingleCellExperiment', 'SingleCellLoomExperiment',
.from_SingleCellExperiment_to_SingleCellLoomExperiment
)
### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### Methods.
###
setMethod('[', 'SingleCellLoomExperiment', .subset.LoomExperiment)
setMethod('rbind', 'SingleCellLoomExperiment', .rbind.LoomExperiment)
setMethod('cbind', 'SingleCellLoomExperiment', .cbind.LoomExperiment)
setMethod('show', 'SingleCellLoomExperiment', .show.LoomExperiment)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.