Learn R Programming

RRNA (version 1.2)

forward: Internal function for moving through secondary structures

Description

Given a bracket notation for RNA secondary structure and an index of a "(" bracket type the forward function will find the ")" bracket that closes the "(" at the given index.

Usage

forward(stc, i)

Value

Integer index

Arguments

stc

a=unlist(strsplit("(((...)))...((..))",""))

i

Interger index

Author

JP Bida

See Also

backward

Examples

Run this code
a=unlist(strsplit("(((...)))...((..))",""))
ind=forward(a,1)

Run the code above in your browser using DataLab