align

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2016 License: Apache-2.0 Imports: 3 Imported by: 8

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 DetectAlphabet(seq string) int

func NewAlign

func NewAlign(alphabet int) *align

func NewSequence

func NewSequence(name string, sequence string, comment string) *seq

Types

type Alignment

type Alignment interface {
	AddSequence(name string, sequence string, comment string) error
	GetSequence(name string) (string, bool)
	Iterate(it func(name string, sequence string))
	NbSequences() int
	Length() int
	ShuffleSequences()
	ShuffleSites(rate float64)
	Sample(nb int) (Alignment, error)
	BuildBootstrap() Alignment
	Recombine(rate float64)
}

type Sequence

type Sequence interface {
	Sequence()
	Name()
	Comment()
}

Jump to

Keyboard shortcuts

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