backward: Internal function for moving through secondary structures

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

1
backward(stc, i)

Arguments

stc

Array of brackets and dots. a=unlist(strsplit("(((...)))...((..))",""))

i

index giving the position of a bracket

Value

returns the index of the bracket that closes the bracket at the given index

Author(s)

JP Bida

Examples

1
2
a=unlist(strsplit("(((...)))...((..))",""))
ind=backward(a,7)

Example output



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