BiobaseENA-0.0.0.2: European Nucleotide Archive data
Safe HaskellNone
LanguageHaskell2010

Biobase.GeneticCodes.Translation

Description

Abstract translation functionality. Given a genetic code translation table (as provided within this module), provide translation from the nucleotide to the amino acid alphabet.

Limited "backtranslation" capabilities are provided. Since this process is lossy, it should only be used in very specific circumstances.

TODO Translation from @BioSequence RNA is missing.

Synopsis

Documentation

class Translation t where Source #

 

Associated Types

type TargetType t :: * Source #

Defines the target type for a given translation input.

type CodonType t :: * Source #

Type of the nucleotide characters.

type AAType t :: * Source #

Type of the amino acid characters.

Methods

translate :: TranslationTable (CodonType t) (AAType t) -> t -> TargetType t Source #

Translate from a given type of sequence t into the target type.

translateAllFrames :: TranslationTable (CodonType t) (AAType t) -> t -> TargetType t Source #

This function works just like translate but with an important difference of creating a target sequence that contains all possible frames. The index mod 3 yields the current frame.

Instances

Instances details
Translation String Source #

Strings of characters are normally very inconvenient but useful in backtracking cases. Fully assumes that the alphabet is DNA. Ignores non-triplets at the end.

Instance details

Defined in Biobase.GeneticCodes.Translation

Translation (Codon Char) Source #

Very simple translation of individual base triplets.

Instance details

Defined in Biobase.GeneticCodes.Translation

Associated Types

type TargetType (Codon Char) Source #

type CodonType (Codon Char) Source #

type AAType (Codon Char) Source #

Translation (BioSequence DNA) Source #

Translation of BioSequence DNA. The translation tables assume DNA triplets anyway. Biologically there should be a transcription step in between. Ignores non-triplets at the end.

Instance details

Defined in Biobase.GeneticCodes.Translation