Documentation
¶
Index ¶
Constants ¶
View Source
const ( AMINOACIDS = 0 // Amino acid sequence alphabet NUCLEOTIDS = 1 // Nucleotid sequence alphabet )
Variables ¶
This section is empty.
Functions ¶
func DetectAlphabet ¶
func NewSequence ¶
Types ¶
type Alignment ¶
type Alignment interface {
AddSequence(name string, sequence string, comment string) error
AddSequenceChar(name string, sequence []rune, comment string) error
GetSequence(name string) (string, bool)
GetSequenceChar(ith int) ([]rune, bool)
GetSequenceName(ith int) (string, bool)
Iterate(it func(name string, sequence string))
IterateChar(it func(name string, sequence []rune))
NbSequences() int
Length() int
ShuffleSequences()
ShuffleSites(rate float64)
Sample(nb int) (Alignment, error)
BuildBootstrap() Alignment
Swap(rate float64)
Recombine(rate float64, lenprop float64)
TrimNames(size int) (map[string]string, error)
TrimSequences(trimsize int, fromStart bool) error
CharStats() map[rune]int64
Alphabet() int
}
Click to show internal directories.
Click to hide internal directories.