Documentation ¶
Overview ¶
Package alphabet provides structs for defining biological sequence alphabets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DNA = NewAlphabet([]string{"A", "C", "G", "T"}) RNA = NewAlphabet([]string{"A", "C", "G", "U"}) Protein = NewAlphabet([]string{"A", "C", "D", "E", "F", "G", "H", "I", "K", "L", "M", "N", "P", "Q", "R", "S", "T", "V", "W", "Y"}) )
Functions ¶
This section is empty.
Types ¶
type Alphabet ¶
type Alphabet struct {
// contains filtered or unexported fields
}
Alphabet is a struct that holds a list of symbols and a map of symbols to their index in the list.
func NewAlphabet ¶
NewAlphabet creates a new alphabet from a list of symbols.
Click to show internal directories.
Click to hide internal directories.