-
Notifications
You must be signed in to change notification settings - Fork 79
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
Add downsampling to select_sketch in rust #1292
Comments
@luizirber I think this is being resolved in your new rust work, yes? |
This wasn't quite covered in #2230. Exposing the
cc @bluegenes |
@luizirber - how would you suggest better handling the error? Separately, do we also need to modify |
Returning an empty sig as in #2931 sounds good!
|
Attempting #1292 in order to move forward sourmash-bio/sourmash_plugin_branchwater#134 Modifies `Signature` `Select` to downsample automatically. - for scaled sketches, while checking ksize, we also retain only sketches that have the right scaled or can be downsampled (scaled <= selection.scaled()) - next, we iterate through the sketches and downsample any where scaled < selection.scaled() Note that for `sourmash_plugin_branchwater` compatibility, we need: - `byteorder` = "1.4.3" - `wasm-bindgen` = "0.2.89" - `once_cell` = "1.18.0" --------- Co-authored-by: Luiz Irber <[email protected]>
Closing after merging #2931! |
Currently
sig.select_sketch
in Rust only return sketches that match exactly a template. But... If there is ascaled=10
sketch and the template isscaled=100
, the sketch can be downsampled.There is some code to do that in luizirber/2021-01-27-olga-remove-protein@e9603f3, but this triggers copies all the time. Might need to think better (maybe an extra parameter,
downsample
?) on how to control this behavior.The text was updated successfully, but these errors were encountered: