tests/testthat/test-AlkAnilineSeq-scores.R

context("AlkAnilineSeq base score")
# .get_heatmap_data
test_that("AlkAnilineSeq base score",{
  # base score selection
  df <- S4Vectors::DataFrame(means.treated.G = c("100","0"),
                             means.treated.A = c("0","100"),
                             means.treated.T = c("0","100"),
                             means.treated.C = c("0","100"))
  x <- IRanges::SplitDataFrameList(df,df)
  seq <- Biostrings::RNAStringSet(c("AG","CU"))
  actual <- RNAmodR.AlkAnilineSeq:::.selected_base_score(x,seq)
  expect_equal(actual,c(0,0,0,100))
})

Try the RNAmodR.AlkAnilineSeq package in your browser

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

RNAmodR.AlkAnilineSeq documentation built on Nov. 8, 2020, 5:52 p.m.