em

package
v0.0.0-...-1be76fa Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package em is the groot implementation of the expectation-maximization algorithm for finding the most likely paths through the graphs Currently, there is no weighting for each path, as they are all so similar in length and the nodes have already been weighted. This may change after I've thought on it some more...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EMrunner

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

EMrunner is the type to run the EM algorithm

func NewEM

func NewEM(nIterations int, mIterations int, paths map[uint32][]byte, lengths map[uint32]int, ecMap map[uint64][]uint32, counts map[uint64]float64) (*EMrunner, error)

NewEM is the constructor

func (*EMrunner) Return

func (EMrunner *EMrunner) Return() (int, []float64, error)

Return is the method to return EM results to the haplotype pipeline process

func (*EMrunner) Run

func (EMrunner *EMrunner) Run() error

Run is the method to run the EM algorithm

Jump to

Keyboard shortcuts

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