feat: STARlong binary + long-read window-coverage filter#116
Open
BenjaminDEMAILLE wants to merge 3 commits into
Open
feat: STARlong binary + long-read window-coverage filter#116BenjaminDEMAILLE wants to merge 3 commits into
BenjaminDEMAILLE wants to merge 3 commits into
Conversation
CI's clippy advanced to 1.97 (new lints fail the `-D warnings` gate) and rustsec flagged several advisories in the dependency tree. Both block all PRs. Clippy: - src/index/suffix_array.rs: assert!(x == 0) -> assert_eq! (manual_assert_eq) - src/io/sam.rs, tests/alignment_features.rs: byte-slice literals -> byte strings, e.g. [b'S', b'M'] -> *b"SM" (byte_char_slices) - src/quant/transcriptome.rs: if-let/else-return-None -> `?` (question_mark) Security audit (Cargo.lock only, no manifest change): - memmap2 0.9.10 -> 0.9.11 (RUSTSEC-2026-0186, out-of-bounds pointer offset) - crossbeam-epoch 0.9.18 -> 0.9.20 (RUSTSEC-2026-0204, invalid pointer deref) - anyhow 1.0.102 -> 1.0.104 (RUSTSEC-2026-0190, unsound downcast_mut) No behavioural change. Unblocks CI for open and future PRs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add LICENSES/STAR_RS_LICENSE (STAR-rs MIT notice, Copyright (c) 2026 Benjamin Demaille) and note it in LICENSES/README.md, for attribution of modules ported from STAR-rs. STAR-rs is dual MIT-OR-Apache; ported code is taken under its MIT option, compatible with this repo's MIT license. Add docs-old/dev/porting-from-star-rs.md documenting the STAR-rs to rustar-aligner type/module mapping, the licensing and cellranger reference-only caveat, the determinism decision (adopt STAR-rs's thread-invariant, no-rand model), and how to validate ports against native STAR via the existing test/ harness with DIVERGENCES.md as the acceptance spec. This is the base of a series of themed, dependency-stacked PRs bringing the STAR-rs feature surface (WASP, clipping, signal tracks, genome transforms, STARlong, STARsolo, ...) into rustar-aligner. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add rustar-aligner-long binary (STAR's STARlong: identical CLI, forces the chaining-DP long-read stitcher via Parameters::long_read, matching how native STAR selects it by binary rather than a flag). Wire params.long_read through stitch_seeds_with_jdb_debug into a new window_read_coverage (ReadAlign_stitchPieces.cpp's WC accumulation, faithful to upstream's rLast=0 under-count for a seed starting at read position 0) and gate the winReadCoverageRelativeMin/winReadCoverageBasesMin cluster filter on long_read, since standard STAR does not filter clusters by seed coverage. Refactor stitch_seeds_core's preamble into prepare_stitch_input, shared with the (upcoming) STARlong chaining-DP stitcher stitch_seeds_long_read. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.
Summary
rustar-aligner-longbinary (STAR's STARlong: identical CLI, forces the chaining-DP long-read stitcher viaParameters::long_read, matching how native STAR selects it by binary rather than a flag).params.long_readthroughstitch_seeds_with_jdb_debuginto a newwindow_read_coverage(ReadAlign_stitchPieces.cpp's WC accumulation, faithful to upstream'srLast=0under-count for a seed starting at read position 0) and gate thewinReadCoverageRelativeMin/winReadCoverageBasesMincluster filter onlong_read, since standard STAR does not filter clusters by seed coverage.docs-old/dev/porting-from-star-rs.md.Test plan