-
Notifications
You must be signed in to change notification settings - Fork 2
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
MRG: update to code for forthcoming sourmash release #467
base: main
Are you sure you want to change the base?
Conversation
src/utils.rs
Outdated
if let Some(against_mh) = against_sig.minhash() { | ||
// downsample against_mh, but keep original md5sum | ||
let against_mh_ds = against_mh.downsample_scaled(query.scaled()).unwrap(); | ||
let against_mh_ds = against_mh | ||
.clone() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would an .into_minhash()
in core
that consumes the signature help here? would avoid the need for .clone()
, which can be substantial for big sketches
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll make a PR against sourmash-bio/sourmash#3342
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! here's what I did; eliminated two (!!) clones,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(comments obv welcome ;))
Ready for review! Please let me manage merging tho 😭 . |
This PR is a standing PR to update to the forthcoming sourmash release, probably 0.16.0, which will hopefully include:
HashFunctions
sourmash#3344 (not projected to cause any problems ;)KmerMinHash
; fixRevIndex::gather
bug aroundscaled
. sourmash#3342 (will need changes here ;))Fixes #468
TODO:
KmerMinHash
; fixRevIndex::gather
bug aroundscaled
. sourmash#3342 and this PR. (It probably won't be, but we could use a test anyway!)KmerMinHash
; fixRevIndex::gather
bug aroundscaled
. sourmash#3342