-
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
Selection::from_record
does not respect scaled
#3384
Comments
Interestingly we apparently figured this out before, because @bluegenes noted it in a test 😆 sourmash/src/core/src/collection.rs Lines 479 to 483 in e86c8a8
|
Tracking it down a bit more, it looks like maybe this is intentional - sourmash/src/core/src/manifest.rs Lines 280 to 283 in e86c8a8
|
The contortions I'm going through over in sourmash-bio/sourmash_plugin_branchwater#504 make me think that we definitely want to provide a way to request downsampling on It felt related to sourmash-bio/sourmash_plugin_branchwater#501 to me, too, but after rereading everything I'm not sure. Sigh. Complexities. |
per slack, luiz speaketh:
(later conversation: we're not sure about num ;)) |
Fixed by #3387. |
In
selection.rs
,Selection::from_record
does not pull thescaled
value in from theRecord
:sourmash/src/core/src/selection.rs
Lines 122 to 131 in e86c8a8
Among perhaps other side effects, this means that
Collection::sig_from_record
does not return an appropriately downsampled signature.This confusion was the source of a bug in branchwater - sourmash-bio/sourmash_plugin_branchwater#505.
The text was updated successfully, but these errors were encountered: