BiobaseENA-0.0.0.1: European Nucleotide Archive data

Safe HaskellNone
LanguageHaskell2010

Biobase.GeneticCodes.Import

Description

The tables imported with these functions are from ENA: https://www.ebi.ac.uk/ena/browse/translation-tables

Synopsis

Documentation

fromFile :: (MonadIO m, MonadError String m) => FilePath -> m [TranslationTable Char Char] Source #

Import translation tables from a given file. In case of parse error, print the error and exit with a failure.

fromByteString :: MonadError String m => ByteString -> m [TranslationTable Char Char] Source #

Parse a ByteString with translation tables.

parseTranslationTable :: TTParser (TranslationTable Char Char) Source #

Parses a single translation table.

parseHeader :: TTParser (Int, Text) Source #

Parse the header, returning the Identifier and the name of the table.