kmer

package
v0.0.0-...-a011eca Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: BSD-3-Clause, GPL-2.0, BSD-3-Clause, + 1 more Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompHash

func CompHash(h1, h2 map[string]int) float64

func Hashseq

func Hashseq(s string, n int) map[string]int

Types

type HashDB

type HashDB struct {
	Hashes []map[string]int
	Names  []string
	K      int
}

func (*HashDB) Init

func (hdb *HashDB) Init(seqs []wtype.BioSequence, n int)

func (HashDB) SearchWith

func (hdb HashDB) SearchWith(seq wtype.BioSequence) []Hit

type Hit

type Hit struct {
	Name  string
	Score float64
}

type SortableHits

type SortableHits []Hit

func (SortableHits) Len

func (s SortableHits) Len() int

func (SortableHits) Less

func (s SortableHits) Less(i, j int) bool

func (SortableHits) Swap

func (s SortableHits) Swap(i, j int)

Jump to

Keyboard shortcuts

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