inst/unitTests/test_plotStateExpression.R

test_plotStateExpression <- function() {
  data(exSCE)
  dat <- SingleCellExperiment(assay=list(logcounts=logcounts(exSCE)))
  RUnit::checkException(plotStateExpression(dat, #Empty
                                            feature_name=rownames(dat)))
  RUnit::checkException(plotStateExpression(exSCE,
                                            feature_name="A")) #wrong input
  ggp <- plotStateExpression(exSCE,
                             feature_name=rownames(exSCE)[1])
  RUnit::checkTrue(length(ggp$layers) > 1)
}

Try the CellTrails package in your browser

Any scripts or data that you put into this service are public.

CellTrails documentation built on Nov. 8, 2020, 5:53 p.m.