Add dna-playground — k-mer offset histogram DNA alignment playground#1
Draft
Copilot wants to merge 1 commit into
Draft
Add dna-playground — k-mer offset histogram DNA alignment playground#1Copilot wants to merge 1 commit into
Copilot wants to merge 1 commit into
Conversation
Agent-Logs-Url: https://github.com/sunsided/genome/sessions/90a3470c-aa3a-433a-bb51-5facf218d5ac Co-authored-by: sunsided <495335+sunsided@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
sunsided
May 12, 2026 16:33
View session
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.
Introduces a new
dna-playgroundworkspace crate for experimenting with k-mer based DNA alignment against hg38 FASTA. Generates synthetic reads with configurable mutations, aligns them via offset histogram voting across multiple k values, then resolves candidates with Needleman-Wunsch local alignment and evaluates against ground truth.New crate:
dna-playgroundCore modules
fasta.rsdna.rsOrientation+SoftmaskModeenumskmer.rsPackedKmer::U64(k≤31) /PackedKmer::U128(k≥32); overlappingKmerIter(stride 1)index.rsgenerate.rsalign.rsoffset = ref_pos − query_pos), clustering, weighted scoring (weight(k) = k)local_align.rscigar.rsmetrics.rsreport.rsmain.rsgenerate,align,evaluate,indexsubcommandsCLI usage
Workspace additions
rand = "0.10.1",serde = "1.0.228",serde_json = "1.0.149"added to[workspace.dependencies]"dna-playground"added to workspace membersVerification
cargo build --workspace✅cargo clippy -p dna-playground✅ (zero warnings)cargo test -p dna-playground✅ (10/10 tests pass)