library(testthat)
library(data.table)
test_that("Test featurePrior SPH", {
featureLib <- readRDS("/home/jchitpin/Downloads/Masters/Projects/MATRIX/RPackages/testData/testthat_Validation Sphingo GT Jan 20 2017 only 192 samples Jan 27 2017.rds")
mmi <- readRDS("/home/jchitpin/Downloads/Masters/Projects/MATRIX/RPackages/testData/testthat_mmi_Validation Sphingo GT Jan 20 2017 only 192 samples Jan 27 2017.rds")
prior <- featurePrior(DT_featureLibrary = featureLib, DT_methodMassInfo = mmi)
trueData <- readRDS(file = "/home/jchitpin/Downloads/Masters/Projects/MATRIX/RPackages/testData/testthat_prior_Validation Sphingo GT Jan 20 2017 only 192 samples Jan 27 2017.rds")
expect_equal(prior, trueData)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.