implementation of mash (genomic minhash algorithm) in Go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Charles Reid e5cc53cdff fix minhash test 5 years ago
.gitignore add project readme and .gitignore 5 years ago
LICENSE add license 5 years ago
MashSketches.md update readme, add quickstart and mash sketch summ 5 years ago
QuickStart.md update readme, add quickstart and mash sketch summ 5 years ago
Readme.md update readme, add quickstart and mash sketch summ 5 years ago
mash_json.go add functionality to load/save mash minhashes from json file 5 years ago
mash_json_test.go add functionality to load/save mash minhashes from json file 5 years ago
minhash.go fix minhash test 5 years ago
minhash_test.go fix minhash test 5 years ago

Readme.md

gopher-smash

gopher-smash is a simple, lightweight re-implementation of core MinHash data structures and algorithms from Mash and sourmash in Go (Golang).

gopher-smash is implemented as an importable Go module with an accompanying command line tool.

Specifically, the long-term aim of gopher-smash is to provide:

  • Go objects for loading, manipulating, debugging, and saving MinHash sketches from both Mash and sourmash
  • Go objects for sourmash's scaled MinHash data structures (containment MinHashes)
  • Go data structures for efficiently storing and querying collections of MinHash sketches (using locally sensitive hash functions)

Quick Start

Installing

You can use go get to install gopher-smash:

go get git.charlesreid1.com/charlesreid1/gopher-smash

This will make gopher-smash importable from Go program

Using

Use gopher-smash from your Go program like so (we use gosh to make the import name shorter):

package main

import (
    gosh "git.charlesreid1.com/charlesreid1/gopher-smash"
)

func main() {
    ...
}