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

MRG: update to code for forthcoming sourmash release #467

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

ctb
Copy link
Collaborator

@ctb ctb commented Oct 11, 2024

This PR is a standing PR to update to the forthcoming sourmash release, probably 0.16.0, which will hopefully include:

Fixes #468

TODO:

@ctb
Copy link
Collaborator Author

ctb commented Oct 12, 2024

gather output validated, as of 2563b0b in #430

src/utils.rs Outdated
Comment on lines 479 to 482
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()
Copy link
Member

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure!

Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

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,

9b448c8

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(comments obv welcome ;))

@ctb ctb changed the title WIP: update to code for forthcoming sourmash release MRG: update to code for forthcoming sourmash release Oct 13, 2024
@ctb
Copy link
Collaborator Author

ctb commented Oct 13, 2024

Ready for review! Please let me manage merging tho 😭 .

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

Successfully merging this pull request may close these issues.

bug when downsampling matches in fastmultigather against rocksdb
2 participants