transformFold: Internal function to translate and rotate a secondary...

Description Usage Arguments Value Author(s) See Also Examples

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

1
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

alignCoord

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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)

RRNA documentation built on May 2, 2019, 1:06 p.m.