protein

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BRENT_ITMAX = 10000
	BRENT_ZEPS  = 1.e-10
	BRENT_CGOLD = 0.3819660
	DBL_MIN     = 2.2250738585072014e-308

	BL_MIN = 1.e-08
	BL_MAX = 100.0
)
View Source
const (
	PROT_DIST_MAX = 20.00
)

Variables

View Source
var DBL_EPSILON float64 = math.Nextafter(1, 2) - 1

Functions

This section is empty.

Types

type ProtDistModel

type ProtDistModel struct {
	// contains filtered or unexported fields
}

func NewProtDistModel

func NewProtDistModel(model int, modelfreqs bool, usegamma bool, alpha float64, removegaps bool) (*ProtDistModel, error)

Initialize a new protein model, given the name of the model as const int: MODEL_DAYHOFF, MODEL_JTT, MODEL_MTREV, MODEL_LG or MODEL_WAG

func (*ProtDistModel) InitModel

func (model *ProtDistModel) InitModel(a align.Alignment, weights []float64) (err error)

func (*ProtDistModel) JC69Dist

func (model *ProtDistModel) JC69Dist(a align.Alignment, weights []float64, selected []bool) (p *mat.Dense, q *mat.Dense, dist *mat.Dense)

Basic JC69 Protein Distance Matrix

func (*ProtDistModel) MLDist

func (model *ProtDistModel) MLDist(a align.Alignment, weights []float64) (p, q, dist *mat.Dense, err error)

func (*ProtDistModel) Ns

func (model *ProtDistModel) Ns() int

Jump to

Keyboard shortcuts

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