Documentation
¶
Index ¶
- Constants
- Variables
- type Config
- type GNMatcher
- func (gnm GNMatcher) CreateWorkDirs() error
- func (gnm GNMatcher) FiltersDir() string
- func (gnm GNMatcher) Match(ns NameString) *protob.Result
- func (gnm GNMatcher) MatchFuzzy(ns NameString, kv *badger.DB) *protob.Result
- func (gnm GNMatcher) MatchNames(names []string) []*protob.Result
- func (gnm GNMatcher) MatchVirus(ns NameString) *protob.Result
- func (gnm GNMatcher) NewNameString(parser gnparser.GNparser, name string) (NameString, bool)
- func (gnm GNMatcher) StemsDir() string
- func (gnm GNMatcher) TrieDir() string
- type NameString
- type Option
Constants ¶
View Source
const MaxNamesNumber = 10_000
Variables ¶
View Source
var ( Version = "v0.0.0" Build = "n/a" )
Functions ¶
This section is empty.
Types ¶
type GNMatcher ¶
type GNMatcher struct { WorkDir string NatsURI string JobsNum int GNUUID uuid.UUID GNamesDB dbase.Dbase Filters *bloom.Filters Trie *levenshtein.MinTree }
GNMatcher keeps most general configuration settings and high level methods for scientific name matching.
func NewGNMatcher ¶
NewGNMatcher is a constructor for GNMatcher instance
func (GNMatcher) CreateWorkDirs ¶
func (GNMatcher) FiltersDir ¶
func (GNMatcher) MatchFuzzy ¶
func (gnm GNMatcher) MatchFuzzy(ns NameString, kv *badger.DB) *protob.Result
func (GNMatcher) MatchVirus ¶
func (gnm GNMatcher) MatchVirus(ns NameString) *protob.Result
func (GNMatcher) NewNameString ¶
type NameString ¶
type Option ¶
type Option func(cnf *Config)
Option is a type of all options for Config.
func OptJobsNum ¶
OptJobsNum sets number of concurrent jobs to run for parallel tasks.
func OptNatsURI ¶
OptNatsURI defines a URI to connect to NATS messaging service server.
func OptWorkDir ¶
OptWorkDir sets a directory for key-value stores and temporary files.
Directories
¶
Path | Synopsis |
---|---|
package bloom creates and serves bloom filters for canonical names, and names of viruses.
|
package bloom creates and serves bloom filters for canonical names, and names of viruses. |
Package dbase is an interface to PostgreSQL database that contains Global Names index data
|
Package dbase is an interface to PostgreSQL database that contains Global Names index data |
Package fuzzy includes a Levenshtein automaton as well as a traditional implementation to calculate Levenshtein Distance.
|
Package fuzzy includes a Levenshtein automaton as well as a traditional implementation to calculate Levenshtein Distance. |
stems_db package operates on a key-value store that contains stems and canonical forms that correspond to these stems.
|
stems_db package operates on a key-value store that contains stems and canonical forms that correspond to these stems. |
Click to show internal directories.
Click to hide internal directories.