Nothing
context("Just testing codonUsage functionality")
test_that("Check codonUsage_DNA works properly",{
CodonUs<-CodonUsage_DNA(seqs=c("ATACGAATCATA","ATGGTCCTCATGGTGGTG"))
expected_matrix<-matrix(0,ncol = (4^3),nrow = 2)
colnames(expected_matrix)<-nameKmer(k=3,type = "dna")
expected_matrix[1,c("ATA","CGA","ATC")]<-c(2,1,1)
expected_matrix[2,c("ATG","GTC","CTC","GTG")]<-c(2,1,1,2)
dimnames(expected_matrix)<-NULL
dimnames(CodonUs)<-NULL
expect_equal(CodonUs,expected_matrix)
})
test_that("Check codonUsage_RNA works properly",{
CodonUs<-CodonUsage_RNA(seqs=c("AUACGAAUCAUA","AUGGUCCUCAUGGUGGUG"))
expected_matrix<-matrix(0,ncol = (4^3),nrow = 2)
colnames(expected_matrix)<-nameKmer(k=3,type = "rna")
expected_matrix[1,c("AUA","CGA","AUC")]<-c(2,1,1)
expected_matrix[2,c("AUG","GUC","CUC","GUG")]<-c(2,1,1,2)
dimnames(expected_matrix)<-NULL
dimnames(CodonUs)<-NULL
expect_equal(CodonUs,expected_matrix)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.