tests/testthat/test_getDrugActivityData.R

test_that("getDrugActivityData output is computed properly", {
	drugAct <- exprs(getAct(rcellminerData::drugData))
	nscSet <- c("141540", "123127", "609699")
	
	actData <- getDrugActivityData(nscSet)
	
	for (nsc in nscSet){
		negLogGI50Data <- as.numeric(actData[nsc, ])
		zScoreData <- as.numeric(drugAct[nsc, ])
		
		corVal <- cor.test(negLogGI50Data, zScoreData)$estimate
		expect_true(corVal > 0.95)
	}
	
})

Try the rcellminer package in your browser

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

rcellminer documentation built on Nov. 26, 2020, 2:02 a.m.