pDna

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualBase

func EqualBase(p Float32Base, q Float32Base, precision float32) bool

EqualBase returns true if two input Float32Base structs, p and q, are 'equal', defined within a user-defined degree of precision.

Types

type Float32Base

type Float32Base struct {
	A float32
	C float32
	G float32
	T float32
}

Float32Base encodes a DNA base as a probability vector using float32 precision. Note that gap probabilities can be stored implicitly as 1 - (A + C + G + T).

Jump to

Keyboard shortcuts

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