Correct validate truth parsing and observation accounting - #659
Open
SuhasSrinivasan wants to merge 11 commits into
Open
Correct validate truth parsing and observation accounting#659SuhasSrinivasan wants to merge 11 commits into
SuhasSrinivasan wants to merge 11 commits into
Conversation
This was referenced Aug 11, 2026
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.
Review status: Author-reviewed and ready for ONT review.
Summary
This PR consolidates validate's related input-truth and observation-accounting corrections:
NA;(contig, strand, position)fail deterministically, while identical overlaps remain idempotent and opposite strands remain independent.These changes share the same validate truth population and reporting pipeline. No sampling, scheduling, throughput, or parallelization change is included.
Severity
High — scientific counts, classification, and output integrity.
Affected accepted inputs can silently omit truth sets or observations, change counts by row order, misclassify CIGAR/reference-strand cases, or truncate an existing report before a later input error.
Bugs and corrected behavior
1M3N1Mversus1M3D1MNspans are omitted;Dspans remain deletionsN/IUPAC baseNaNNAImplementation
+/-validation, documented modification-label grammar, and provenance-aware map insertion.Testing
Tested exact revision:
e90e6ff8a2cdc5196d35a5364c4c992c6b37da91Tree:
2c32f401c9b0a2539083299f1456dc6a0452b6a8Platform/toolchain: macOS arm64; rustc/cargo 1.90.0;
rust-htslib0.46.0 andhts-sys2.2.0.1b98e2a75112446f1072cdc6b117bc40d5947b023b285c051ca9560e30b6d0b9.m=3to the conservedm=3, No Call=6result; expanded classification matrix covers No Call, mismatch, deletion, reference skip, positive/negative descriptor strands, reverse alignments, empty/N descriptors, and unrelated bases.b5f7e7d285029324d9b3acae19cc05099271454ac98bfc059a92b0581625cd51.git diff --check, direct stable formatting checks on all changed Rust files, clean-worktree, ancestry, test-union, and Cargo.lock checks passed.The exact combined head was independently reviewed for Rust error propagation, reader lifetimes, population eligibility, strand/CIGAR semantics, deterministic conflict handling, output preservation, and preservation of every source test. No blocker or material nonblocker remained.
Output compatibility
Reviewer guide
NversusD, strand composition, ambiguity, and shared edge filtering.NAformatting.cargo test -p mod_kit validate:: -- --test-threads=1andcargo test -p modkit --test test_validate -- --test-threads=1as focused canaries.Non-goals
.) truth mode or UCSCtrack/browserdirective support.