Repository navigation
Add Jaccard signature similarity protocol - #45
Merged
lwaldron merged 4 commits intoOct 18, 2026
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Conflicting singleton-matrix instructions and incorrect citation provenance need correction.
3 open issues
What changed in this PR
Adds an atomic protocol for comparing microbial signatures using Jaccard similarity after harmonizing taxa to one rank, addressing issue #8.
Changes:
- Defines harmonization, deduplication, and minimum-length filtering.
- Specifies pair eligibility, matrix layout, and provenance requirements.
- Keeps clustering and visualization outside the protocol’s scope.
| File | Description |
|---|---|
| protocols/jaccard-signature-similarity/protocol.md | Adds the Jaccard similarity procedure, parameters, and output conventions. |
Review effort: Balanced
Comment on lines
+112
to
+114
| similarity involving an ineligible signature. If fewer than two signatures | ||
| remain, output an empty matrix with its dimensions and reason rather than | ||
| inventing pairwise values. |
| license: CC-BY-4.0 | ||
| type: atomic | ||
|
|
||
| protocol_citation: "10.1111/j.1469-8137.1912.tb05611.x" |
| type: atomic | ||
|
|
||
| protocol_citation: "10.1111/j.1469-8137.1912.tb05611.x" | ||
| method_origin_citation: "10.1111/j.1469-8137.1912.tb05611.x" |
Also define the singleton case as a labeled 1 by 1 matrix, note that dissimilarity is 1 - J for consumers that need it, and move the evaluation note out of the protocol. Drafted with Claude Code.
Drafted with Claude Code.
lwaldron
approved these changes
Oct 18, 2026
| every input taxon to the selected rank. | ||
| - **Parameters** | ||
| - `taxonomic_rank`: exactly one rank at which every signature is compared. The | ||
| default is `genus`, matching the worked Jaccard analysis in the source |
Member
There was a problem hiding this comment.
No reason for genus to be a default, would make more sense to default to whatever the most common taxonomic rank is.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Closes #8
Adds an atomic protocol for calculating pairwise Jaccard similarity between
microbial signatures after harmonizing them to a single taxonomic rank.
The protocol defines: