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: fix ANI from non-rocksdb gather output #361

Merged
merged 4 commits into from
Jun 19, 2024
Merged

MRG: fix ANI from non-rocksdb gather output #361

merged 4 commits into from
Jun 19, 2024

Conversation

ctb
Copy link
Collaborator

@ctb ctb commented Jun 19, 2024

Calculate ANI of matches against original query with f_orig_query and f_match_orig, instead of against f_unique_to_query and f_match.

This fixes the ANI differences between sourmash gather and non-RocksDB branchwater gather for the columns query_containment_ani, match_containment_ani, max_containment_ani, and average_containment_ani.

This also brings in the sourmash core working branch sourmash-bio/sourmash#3218 which fixes the RocksDB-based numbers.

Fixes #331 🎉

@ctb ctb mentioned this pull request Jun 19, 2024
3 tasks
@ctb
Copy link
Collaborator Author

ctb commented Jun 19, 2024

This PR should wait for sourmash-bio/sourmash#3218 to be merged and a new version of sourmash-rs core to be released, and then we can update it and put it up for merge!

@ctb ctb closed this Jun 19, 2024
@ctb ctb reopened this Jun 19, 2024
ctb added a commit to sourmash-bio/sourmash that referenced this pull request Jun 19, 2024
Calculate ANI of matches against original query with `f_orig_query` and
`f_match_orig`, instead of against `f_unique_to_query` and `f_match`.

This fixes the ANI differences between `sourmash gather` and RocksDB
branchwater gather for the columns `query_containment_ani`,
`match_containment_ani`, `max_containment_ani`, and
`average_containment_ani`.

Refs:
* Used by
sourmash-bio/sourmash_plugin_branchwater#361
* Fixes RocksDB-based calculations for
sourmash-bio/sourmash_plugin_branchwater#331
Copy link
Contributor

@bluegenes bluegenes left a comment

Choose a reason for hiding this comment

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

👍🏻!

@ctb ctb changed the title WIP: fix ANI from non-rocksdb gather output MRG: fix ANI from non-rocksdb gather output Jun 19, 2024
@ctb ctb enabled auto-merge (squash) June 19, 2024 14:13
@ctb ctb merged commit e727cca into main Jun 19, 2024
1 check passed
@ctb ctb deleted the fix_gather_ani branch June 19, 2024 14:17
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.

differences between this plugin's gather and sourmash gather
2 participants