BiobaseTypes-0.1.4.0: Collection of types for bioinformatics

Safe HaskellNone
LanguageHaskell2010

Biobase.Types.ReadingFrame

Synopsis

Documentation

newtype ReadingFrame Source #

The Reading frame. Sequence indexing starts at position 1, which starts reading frame 1. Reading frame 2 and 3 start at position 2 and 3 respectively.

The reading frame should be constructed from an Index 1 with a smart constructor to get the frame calculation right.

Constructors

ReadingFrame 

Fields

Instances
Eq ReadingFrame Source # 
Instance details

Defined in Biobase.Types.ReadingFrame

Ord ReadingFrame Source # 
Instance details

Defined in Biobase.Types.ReadingFrame

Generic ReadingFrame Source # 
Instance details

Defined in Biobase.Types.ReadingFrame

Associated Types

type Rep ReadingFrame :: Type -> Type #

type Rep ReadingFrame Source # 
Instance details

Defined in Biobase.Types.ReadingFrame

type Rep ReadingFrame = D1 (MetaData "ReadingFrame" "Biobase.Types.ReadingFrame" "BiobaseTypes-0.1.4.0-2SJmLmHyrafG90Dl3d2I5j" True) (C1 (MetaCons "ReadingFrame" PrefixI True) (S1 (MetaSel (Just "getReadingFrame") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

fromIndex :: Index 1 -> ReadingFrame Source #

TODO should this be a type class, since we might reasonably want to construct from a number of possible indices?