Module scoring

Module scoring 

Source

Structs§

PrecursorSearchIndex
A built search index over MS1 with per-group eligibility masks.
RtBuckets
Coarse RT bucketing over absolute time in seconds (closed intervals).
ScoredHit
XicDetails
XicScoreOpts

Enums§

MatchScoreMode
PrecursorLike

Functions§

assign_ms2_to_best_ms1_by_xic
best_ms1_for_each_ms2
For each MS2, choose the best MS1 index (by score, then deterministic tie-breaks). Returns a Vec<Option> indexed by ms2_idx.
enumerate_ms2_ms1_pairs_simple
Convenience: build, enumerate, done.
geom_match_score_precursor
geom_match_score_single_cluster
Geometric score for a single precursor cluster vs a fragment.
jaccard_time
Jaccard overlap in absolute seconds for two closed intervals.
ms1_to_ms2_map
Build an MS1 → Vec map from a winner list (ms2→best ms1). Returns a Vec<Vec> with length ms1.len(), where each entry lists MS2 indices.
query_precursor_scored
Score a single precursor (cluster or feature) against a set of MS2 candidates.
query_precursors_scored_par
Score many precursors in parallel.
score_pairs
Score all pairs (ms2_idx, ms1_idx).
xic_match_score
xic_match_score_precomputed
xic_match_score_precursor