Safe Haskell | None |
---|---|
Language | Haskell2010 |
A newtype with an attached phenotype which allows us to encode
nucleotides and amino acids. Actual seqence-specific functions can be
founds in the appropriate modules AA
and Nuc
.
Documentation
A Letter
together with its phantom type t
encodes bio-sequences.
class LetterChar t where Source #
Convert Letter
types into character forms. DNA
, RNA
, and amino
acid
sequences can make use of this. Other Letter
types only if they
have single-char representations.
letterChar :: Letter t -> Char Source #
charLetter :: Char -> Letter t Source #
class MkPrimary n t where Source #
Conversion from a large number of sequence-like inputs to primary sequences.
MkPrimary k (Vector Char) t => MkPrimary k ByteString t Source # | |
MkPrimary k (Vector Char) t => MkPrimary k ByteString t Source # | |
MkPrimary k (Vector Char) t => MkPrimary k Text t Source # | |
MkPrimary k (Vector Char) t => MkPrimary k Text t Source # | |
MkPrimary k (Vector Char) t => MkPrimary k String t Source # | |
MkPrimary * (Vector Char) DNA Source # | |
MkPrimary * (Vector Char) RNA Source # | |
MkPrimary * (Vector Char) XNA Source # | |
MkPrimary * (Vector Char) DEG Source # | |
MkPrimary * (Vector Char) AA Source # | |
MkPrimary * (Vector Int) Unknown Source # | |