actions/dna

Types

pub type DnaParseError {
  UnknownParseError
  InvalidBaseError(base: String)
  InvalidLengthError(length: Int)
  NoStartCodon
}

Constructors

  • UnknownParseError
  • InvalidBaseError(base: String)
  • InvalidLengthError(length: Int)
  • NoStartCodon
pub type DnaTranslation {
  Translation(translation: List(String), trimmed: Int)
  TranslationError(DnaParseError)
}

Constructors

  • Translation(translation: List(String), trimmed: Int)
  • TranslationError(DnaParseError)

Functions

pub fn reverse_translate(residues: List(Residue)) -> String
pub fn translate(sequence: String) -> DnaTranslation
Search Document