tests/testthat/test-aln2aastring.R

test_that("aln2aastring() outputs AAStringSet", {
    cds1 <- Biostrings::DNAString("ATGCAACATTGC")
    cds2 <- Biostrings::DNAString("ATG---CATTGC")
    cds1.cds2.aln <- c(Biostrings::DNAStringSet(cds1),
        Biostrings::DNAStringSet(cds2))
    expect_true(class(cds1.cds2.aln |> cds2aa() |> aastring2aln() |>
    aln2aastring()) == "AAStringSet")
})
kullrich/distSTRING documentation built on Dec. 21, 2021, 8:42 a.m.