tests/testthat/test-pssm_sd.R

context("checking that the length of PSSM_SD and PSSM_SEG feature vectors are equal to 80,100 respectivly")

test_that("whether the PSSM_SD,PSSM_SEG functions gives us the expected output",{
  ss<-PSSM_SD(system.file("extdata","C7GQS7.txt.pssm",package="PSSMCOOL"))
  ss2<-pssm_seg(system.file("extdata","C7GQS7.txt.pssm",package="PSSMCOOL"),3)
  expect_equal(length(ss[[2]]),80)
  expect_equal(length(ss2),100)
})
Alireza9651501005/PSSMCOOL documentation built on Dec. 14, 2021, 11:53 a.m.