transformFold {RRNA} | R Documentation |
Internal function to translate and rotate a secondary structure plot
Description
Given a coordinate file, a point, and an angle in radians transformFold rotates the fold around the given point the given number of radians.
Usage
transformFold(dat, x0, y0, ang)
Arguments
dat |
Coordinate file containing multiple RNA folds |
x0 |
x coordinate of center of rotation |
y0 |
y coordinate of center of rotation |
ang |
angle of rotation in radians |
Value
dat frame containing the rotated coordinates
Author(s)
JP Bida
See Also
Examples
ct=makeCt("((((...(((((((.........)))))))...((((.........))))...))))",
"AAAAAAAACCCCCCCCAAAGGGGGGGAUUACCCCUCCUUUAAAAGGGUUUUCCCCCCC")
c1=ct2coord(ct)
RNAPlot(c1)
c2=transformFold(c1,0,0,pi/2)
c3=transformFold(c2,0,0,pi/2)
c4=transformFold(c3,0,0,pi/2)
RNAPlot(c2,add=TRUE)
RNAPlot(c3,add=TRUE)
RNAPlot(c4,add=TRUE)
[Package RRNA version 1.2 Index]