RNAdraw-0.2.0.1: Draw RNA secondary structures

Safe HaskellNone

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.

Synopsis

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.

data Parts Source

Constructors

Parts 

data PairAnno Source

How to handle the list of annotated pairs.

Constructors

Never

Never write out the pair list with pair-type information.

Required

Only write out those pairs that are non-canonical, or the required list of pairs to get all information on the secondary structure.

Always

Always write out all pairs.