metrics

package
v6.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2018 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SitewiseBaseCounts

func SitewiseBaseCounts(aln *nexus.Alignment, letters []byte) map[byte][]int

SitewiseBaseCounts returns a 4xN array of base counts where N is the number of sites

func SitewiseEntropy

func SitewiseEntropy(aln *nexus.Alignment, chars []byte) []float64

func SitewiseGc

func SitewiseGc(aln *nexus.Alignment) []float64

Types

type Metric

type Metric int

Metric is an enum type denoting possible sitewise metrics to calculate

const (
	// Entropy is Shannon's entropy
	Entropy Metric = iota

	// GC is GC percentage
	GC

	// Multi is the multinomial measurement
	Multi
)

func (Metric) String

func (m Metric) String() string

Jump to

Keyboard shortcuts

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