Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KmerPrefix ¶
KmerPrefix returns the first n bases. n needs to be > 0. The length of the prefix is n.
Types ¶
type SearchResult ¶
type SearchResult struct { Kmer uint64 // searched kmer LenPrefix uint8 // length of common prefix between the query and this k-mer Values []uint32 // value of this key }
SearchResult records information of a search result.
type Tree ¶
type Tree struct {
// contains filtered or unexported fields
}
Tree is a radix tree for storing bit-packed k-mer information.
func (*Tree) Insert ¶
Insert is used to add a new entry or update an existing entry. Returns true if an existing record is updated.
func (*Tree) RecycleSearchResult ¶
func (idx *Tree) RecycleSearchResult(sr *[]*SearchResult)
RecycleSearchResult recycles search results objects.
Click to show internal directories.
Click to hide internal directories.