library(RUnit)
## Test flattenDotBracket
checkEquals(flattenDotBracket("...((((..[[.))))]]"), "...((((..((.))))))")
## Test readCT
testCTFile <- system.file("extdata", "exampleCT.ct", package="ncRNAtools")
tmRNASequence <- "GGGGCUGAUUCUGGAUUCGACGGGAUUUGCGAAACCCAAGGUGCAUGCCGAGGGGCGGUUGGCCUCGUAAAAAGCCGCAAAAAAUAGUCGCAAACGACGAAAACUACGCUUUAGCAGCUUAAUAACCUGCUUAGAGCCCUCUCUCCCUAGCCUCCGCUCUUAGGACGGGGAUCAAGAGAGGUCAAACCCAAAAGAGAUCGCGUGGAAGCCCUGCCUGGGGUUGAAGCGUUAAAACUUAAUCAGGCUAGUUUGUUAGUGGCGUGUCCGUCCGCAGCUGGCAAGCGAAUGUAAAGACUGACUAAGCAUGUAGUACCGAGGAUGUAGGAAUUUCGGACGCGGGUUCAACUCCCGCCAGCUCCACCA"
checkTrue(nrow(readCT(testCTFile, tmRNASequence)$pairsTable) == 15)
## Test readDotBracket
testDotBracketFile <- system.file("extdata", "exampleDotBracket.dot", package="ncRNAtools")
checkTrue(readDotBracket(testDotBracketFile)$freeEnergy == -41.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.