alphabet

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package alphabet provides mappings between codons and amino acids

Index

Constants

This section is empty.

Variables

View Source
var ErrorCDSNotModThree error = errors.New("Translation error: Nucleotide sequence not divisible by 3")

Functions

func Complement added in v1.2.0

func Complement(nuc string) string

func MakeCodonDict

func MakeCodonDict() map[string]string

MakeCodonDict returns a map from codon (string) to amino acid code (string)

func MakeCompArray added in v1.2.0

func MakeCompArray() [256]byte

func MakeEncodedCompArray added in v1.2.0

func MakeEncodedCompArray() [256]byte

func ReverseComplement added in v1.2.0

func ReverseComplement(nuc string) string

func Translate added in v1.1.0

func Translate(nuc string, strict bool) (string, error)

Translate a nucleotide sequence to a protein sequence Codons with ambiguous nucleotides are resolved if it can only possibly represent one amino acid

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL