tests/testthat/test-get_fop.R

test_that("works for yeast_cds", {
    # determine optimal codons requires sufficient data.
    # we only test the function works.
    set.seed(2024)
    seqs_sample <- yeast_cds[sample.int(length(yeast_cds), 100)]
    cf_sample <- count_codons(seqs_sample)
    expect_visible(get_fop(cf_sample))
})

Try the cubar package in your browser

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

cubar documentation built on April 3, 2025, 8:58 p.m.