Safe Haskell | None |
---|
Several methods to draw ascii dot-bracket figures onto the screen. The result will be one sequence line, a dot-bracket string, and possibly a list of annotated basepairs. The dot-bracket string can handle base triplets.
- class DotBracketDraw a where
- draw :: PairAnno -> SequenceNumbering -> a -> String
- drawParts :: PairAnno -> SequenceNumbering -> a -> Parts
- drawPK :: PairAnno -> SequenceNumbering -> a -> String
- data Parts = Parts {}
- data PairAnno
- data SequenceNumbering
- = Numbered
- | NotNumbered
Documentation
class DotBracketDraw a whereSource
The class of dot-bracket drawable structures.
draw :: PairAnno -> SequenceNumbering -> a -> StringSource
Draw a secondary structure. It is assumed that the structure is pseudoknot-free.
drawParts :: PairAnno -> SequenceNumbering -> a -> PartsSource
As draw
but returns the different strings as parts. These can then be
further altered by the receiving end.
drawPK :: PairAnno -> SequenceNumbering -> a -> StringSource
Draw a pseudoknotted secondary structures.
DotBracketDraw (String, [PairIdx]) | |
DotBracketDraw (String, [ExtPairIdx]) | |
DotBracketDraw (ByteString, [PairIdx]) | |
DotBracketDraw (ByteString, [ExtPairIdx]) |