viennaToHelix
will ignore any non dot-bracket characters prior
to parsing, so the resultant length will be shorter than expected if invalid
characters are included. If the colour palette is less than the number of supported brackets, it
will simply cycle through the list. To explicitly prevent the colouring/
display of specific bracket type, colour it NA.
For helixToVienna
, pseudoknotted basepairs will be assigned
different bracket types. As there are only 8 supported bracket types,
any basepair pseudonotted deeper than 8 levels will be excluded from the
output. Additionally, vienna format is unable to respresent conflicting
basepairs, so conflicting basepairs will also be excluded. For both types
of exclusion, those at the bottom of the helix data.frame will always be
excluded in favour of keeping helices higher on the data.frame table.
helixToConnect
and helixToBpseq
will convert a
non-conflicting helix data.frame into connect or bpseq format
repsectively, provided the helix structure has a sequence attribute
containing a single nucleotide sequence of the structure.