tests/testthat/test.hydrophobicity.R

# COMPARED TO GRAVY Grand average of hydropathicity (GRAVY) ExPASy
# http://web.expasy.org/cgi-bin/protparam/protparam
# SEQUENCE: QWGRRCCGWGPGRRYCVRWC
# GRAVY: -0.950

# CHECK GRAVY VALUE
test_that("hidrophobicity function: the computed value is wrong",{
  expect_equal(hydrophobicity(seq = "QWGRRCCGWGPGRRYCVRWC",scale = "Kyte"),-0.950)
})

# CHECK OUTPUT CLASS
test_that("hidrophobicity function: the computed value is wrong",{
  expect_true(is.numeric(hydrophobicity(seq = "QWGRRCCGWGPGRRYCVRWC", scale = "Kyte" )))
})

Try the Peptides package in your browser

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

Peptides documentation built on May 31, 2023, 9:47 p.m.