Description Usage Arguments Value Examples
View source: R/Structstrings-DotBracketString.R
The DotBracketString extends the
BString class. The
DotBracketStringSet and DotBracketStringSetList classes are
implemented accordingly.
The alphabet consists of the letters
(, ), ., <, >, [, ],
{ and }, which describes base pairing between positions. The
. letter describes an unpaired position. The number of opening and
closing letters need to be equal within a DotBracketString to be a
valid dot bracket annotation. This is checked upon creation and modificiation
of the object.
The objects can also be created using the shorter function names DB,
DBS and DBSL.
Currently, there is no distinction in base pairing strength between the different bracket types.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | DotBracketString(x = "", start = 1, nchar = NA)
DB(x = character(), start = 1, nchar = NA)
DotBracketStringSet(x = character())
DBS(x = character())
DotBracketStringSetList(..., use.names = TRUE)
DBSL(..., use.names = TRUE)
## S4 method for signature 'DotBracketString'
alphabet(x)
## S4 method for signature 'DotBracketString'
encoding(x)
|
x |
|
start |
|
nchar |
|
... |
|
use.names |
|
a DotBracketString* object.
1 2 3 4 | str <- "((.))..[[..]]...{{..}}..<<..>>"
db <- DotBracketString(str)
dbs <- DotBracketStringSet(c("structure1" = str, "structure2" = str))
dbsl <- DotBracketStringSetList(list(first = dbs, second = dbs))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.