loadCt | R Documentation |
A variety of RNA secondary structure prediction programs produce CT files. You can load these CT files into R using the loadCT function.
loadCt(file)
file |
The name of the CT file being loaded |
Returns at data frame containing the CT file data
JP Bida
RNAPlot
aptPlotCT
### Create a CT file with PseudoKnots ###
pk=makeCt("((((...(((((((.........)))))))...((((.........))))...))))",
"AAAAAAAACCCCCCCCAAAGGGGGGGAUUACCCCUCCUUUAAAAGGGUUUUCCCCCCC"
)
pk$bound[pk$pos==20]=42
pk$bound[pk$pos==19]=43
pk$bound[pk$pos==43]=19
pk$bound[pk$pos==42]=20
### Create a CT file for testing ###
ctfile = tempfile(fileext = ".ct")
write.table(pk[,c(1,4,2,3,6,5)],file=ctfile,
row.names=FALSE,col.names=TRUE)
ctfile=loadCt(ctfile)
### Before using ct2coord you need to remove the pseudo knots ###
l=pseudoKnot(ctfile)
dat=l[[2]]
cd=ct2coord(dat)
RNAPlot(cd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.