Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sketch size? #27

Open
jianshu93 opened this issue Aug 28, 2024 · 1 comment
Open

sketch size? #27

jianshu93 opened this issue Aug 28, 2024 · 1 comment

Comments

@jianshu93
Copy link

Hi kmer-db team,

I was not able to find the minhash sketch size but only filter fraction, what does this mean with respect to sketch size? It was very clear in all other minhash implementations such as Mash, BinDash et.al. and the sketch size is the key parameter determining accuracy and speed.

Thanks,

Jianshu

@agudys
Copy link
Member

agudys commented Sep 18, 2024

Hello,

Instead of using fixed-sized sketches, Kmer-db selects given fraction of k-mers as this allows more accurate distance estimation for genomes with different sizes. But if you now more or less the size of your genomes, the math is easy: sketch_size = genome_size * fraction. In the paper you can find the error comparison of Kmer-db fractions and Mash sketches on bacterial genomes.

m_bioinformatics_35_1_133_f3

The thing is that Kmer-db is significantly faster than Mash and in many cases you won't need sketching at all (this is the default mode, actually).

Hope it helps.
Adam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants