loadCoords | R Documentation |
Coordinate files can be created from the viennaRNA library.
loadCoords(filename)
filename |
Name of the coordinate file being loaded |
Data frame containing the coordinate file
JP Bida
The RRNAFold program generates the coordinate files used by RRNA
https://github.com/jpbida/ViennaScripts
### Create a test coordinate file using ct2coord ###
ct=makeCt("((((...(((((((.........)))))))...((((.........))))...))))",
"AAAAAAAACCCCCCCCAAAGGGGGGGAUUACCCCUCCUUUAAAAGGGUUUUCCCCCCC"
)
coord=ct2coord(ct)
### add an id ###
coord$id=1
### write out test file ###
crfile = tempfile(fileext=".cr")
write.table( coord[,c('id','x','y','seq','num','bound')],
col.names=FALSE,row.names=FALSE,sep=",",file=crfile
)
### Read in the coordinate file ##
input=loadCoords(crfile)
### Plot the file using RNAPlot ##
RNAPlot(input)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.