tests/testthat/test_TGIFFunctions.R

context("TGIFFunctions")

# Package loading
library("SingleCellExperiment")

# Data loading
data("DistalLungEpithelium")
data("pca.DistalLungEpithelium")
data("label.DistalLungEpithelium")

# SingleCellExperiment-class
sce <- SingleCellExperiment(assays = list(counts = DistalLungEpithelium))
reducedDims(sce) <- SimpleList(PCA=pca.DistalLungEpithelium)

# Generic
expect_true("genericFunction" %in% is(settingTGIF))
expect_true("genericFunction" %in% is(calcTGIF))
expect_true("genericFunction" %in% is(reportTGIF))

Try the scTGIF package in your browser

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

scTGIF documentation built on Nov. 8, 2020, 5:24 p.m.