convertAnnotation | R Documentation |
convertAnnotation
converts a type of dot bracket annotation into
another. This only works if the original bracket type is present and the
target bracket type is not.
convertAnnotation(x, from, to)
## S4 method for signature 'DotBracketString'
convertAnnotation(x, from, to)
## S4 method for signature 'DotBracketStringSet'
convertAnnotation(x, from, to)
## S4 method for signature 'DotBracketStringSetList'
convertAnnotation(x, from, to)
x |
a |
from |
which annotation type should be converted? Must be one of the
following values: |
to |
Into which annotation type should the selected one be converted?
Must be one of the following values:
|
The modified input object, a DotBracketString*
object.
str <- "((.))..[[..]]...{{..}}......."
dbs <- DotBracketString(str)
convertAnnotation(dbs, 1L, 2L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.