tests/testthat/test-positionalProperty.R

# test script for positionalProperty.R - testcases are NOT comprehensive!

test_that("positionalProperty works", {

  set.seed(42)
  expect_doppelganger(
    "positionalEntropy_TRB_plot",
     positionalProperty(getCombined(), 
                        chain = "TRB", 
                        aa.length = 20)
  )
  
  expect_doppelganger(
    "positionalEntropy_TRA_plot",
    positionalProperty(getCombined(), 
                       chain = "TRA", 
                       aa.length = 20)
  )
  
  expect_doppelganger(
    "positionalEntropy_Kidera_plot",
    positionalProperty(getCombined(), 
                       chain = "TRB", 
                       method = "Kidera",
                       aa.length = 20)
  )
  
  expect_doppelganger(
    "positionalEntropy_stScales_plot",
    positionalProperty(getCombined(), 
                       chain = "TRB", 
                       method = "stScales",
                       aa.length = 20)
  )
  
  expect_doppelganger(
    "positionalEntropy_tScales_plot",
    positionalProperty(getCombined(), 
                       chain = "TRB", 
                       method = "tScales",
                       aa.length = 20)
  )
  
  expect_doppelganger(
    "positionalEntropy_VHSE_plot",
    positionalProperty(getCombined(), 
                       chain = "TRB", 
                       method = "VHSE",
                       aa.length = 20)
  )
})
ncborcherding/scRepertoire documentation built on May 13, 2024, 3:02 a.m.