Safe Haskell | None |
---|---|
Language | Haskell2010 |
Biobase.Types.ReadingFrame
Synopsis
- newtype ReadingFrame = ReadingFrame {}
- nextReadingFrame :: ReadingFrame -> ReadingFrame
- prevReadingFrame :: ReadingFrame -> ReadingFrame
- fromIndex :: Index 1 -> ReadingFrame
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 # | |
Defined in Biobase.Types.ReadingFrame | |
Ord ReadingFrame Source # | |
Defined in Biobase.Types.ReadingFrame Methods compare :: ReadingFrame -> ReadingFrame -> Ordering # (<) :: ReadingFrame -> ReadingFrame -> Bool # (<=) :: ReadingFrame -> ReadingFrame -> Bool # (>) :: ReadingFrame -> ReadingFrame -> Bool # (>=) :: ReadingFrame -> ReadingFrame -> Bool # max :: ReadingFrame -> ReadingFrame -> ReadingFrame # min :: ReadingFrame -> ReadingFrame -> ReadingFrame # | |
Generic ReadingFrame Source # | |
Defined in Biobase.Types.ReadingFrame Associated Types type Rep ReadingFrame :: Type -> Type # | |
type Rep ReadingFrame Source # | |
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?