tests/testthat/test_featurePrior_SPH.R

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)
})
jchitpin/blistR documentation built on July 8, 2019, 6:29 p.m.