| Safe Haskell | None | 
|---|
BioInf.Secondary.Draw.DotBracket
Description
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.
Methods
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.
Instances
| DotBracketDraw (String, [PairIdx]) | |
| DotBracketDraw (String, [ExtPairIdx]) | |
| DotBracketDraw (ByteString, [PairIdx]) | |
| DotBracketDraw (ByteString, [ExtPairIdx]) | 
How to handle the list of annotated pairs.
data SequenceNumbering Source
Constructors
| Numbered | |
| NotNumbered |