forward: Internal function for moving through secondary structures

View source: R/RRNA.r

forwardR Documentation

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)

Arguments

stc

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

i

Interger index

Value

Integer index

Author(s)

JP Bida

See Also

backward

Examples

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

jpbida/RRNA documentation built on April 28, 2024, 1:27 p.m.