Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RagnarGrootKoerkamp/astar-pairwise-aligner
/ functions
Functions
930 in github.com/RagnarGrootKoerkamp/astar-pairwise-aligner
⨍
Functions
930
◇
Types & classes
197
↓ 3 callers
Function
lookup_am_in_b_hashmap_dedup
(a: Seq, b: Seq, k: I)
pa-heuristic/benches/matches_inexact.rs:169
↓ 3 callers
Method
make_aligner
Convert to a typed `AstarPa2` `Aligner` instance, using a visualizer is if the `pa-vis` feature is enabled.
astarpa2/src/params.rs:132
↓ 3 callers
Method
make_aligner_with_visualizer
Convert to a typed `AstarPa2` `Aligner` instance, with a given visualizer.
astarpa2/src/params.rs:180
↓ 3 callers
Method
next_front
Computes the next front (front `i`) from the current one.
pa-base-algos/src/nw/affine.rs:139
↓ 3 callers
Method
parent
The id of the parent, or `None` for the root.
astarpa-next/src/compressed_history.rs:133
↓ 3 callers
Method
pos
(&self)
pa-base-algos/src/dt.rs:254
↓ 3 callers
Method
potential_distance
(&self, from: Pos, to: Pos)
pa-heuristic/src/seeds.rs:84
↓ 3 callers
Method
print_stats
(&mut self)
pa-heuristic/src/contour/hint_contours.rs:640
↓ 3 callers
Method
process_input_pairs
Call the given function for each pair in the input.
pa-bin/src/lib.rs:69
↓ 3 callers
Method
prune_end
(&self)
pa-heuristic/src/prune.rs:89
↓ 3 callers
Method
prune_start
(&self)
pa-heuristic/src/prune.rs:83
↓ 3 callers
Method
push_default_front
(&mut self, range: RangeInclusive<I>)
pa-base-algos/src/front.rs:119
↓ 3 callers
Method
resize_with
(&mut self, new_len: usize, f: F)
pa-heuristic/src/split_vec.rs:90
↓ 3 callers
Method
round_in
(&self)
astarpa2/src/ranges.rs:74
↓ 3 callers
Function
round_inward
(j_range: JRange)
pa-base-algos/src/nw/bitpacking.rs:220
↓ 3 callers
Method
score
(&self)
pa-heuristic/src/matches.rs:64
↓ 3 callers
Method
score
The max sum of arrows starting at pos
pa-heuristic/src/contour/hint_contours.rs:258
↓ 3 callers
Method
stats
(&mut self)
pa-heuristic/src/heuristic/sh.rs:157
↓ 3 callers
Method
to_path_with_costs
(&self, cm: AffineCost<N>)
pa-affine-types/src/cigar.rs:185
↓ 3 callers
Function
to_point
(CPos(x, y): CPos)
pa-vis/src/sdl.rs:34
↓ 3 callers
Method
transform
(&self, pos @ Pos(i, j): Pos)
pa-heuristic/src/seeds.rs:140
↓ 3 callers
Method
value_of_prefix
(&self, j: I)
pa-bitpacking/src/encoding.rs:26
↓ 2 callers
Method
align_for_bounded_dist
( &mut self, f_max: Option<Cost>, )
pa-base-algos/src/dt.rs:916
↓ 2 callers
Function
astar_dt
Align two sequences using the given heuristic and visualizer, using the diagonal transition (DT) optimization.
astarpa/src/astar_dt.rs:34
↓ 2 callers
Function
astarpa_gcsh
( a: *const u8, a_len: usize, b: *const u8, b_len: usize, // Parameters r: usize,
astarpa-c/src/lib.rs:73
↓ 2 callers
Method
band_doubling_params
( &self, start: crate::DoublingStart, a: &[u8], b: &[u8], nw: &NWInsta
pa-base-algos/src/nw.rs:275
↓ 2 callers
Method
build
(&self, _a: Seq, _b: Seq)
pa-vis/src/lib.rs:121
↓ 2 callers
Method
build
(&self, a: Seq<'a>, b: Seq<'a>)
pa-heuristic/src/heuristic/bruteforce_gcsh.rs:21
↓ 2 callers
Function
char_bicounts
(a: Seq)
pa-heuristic/src/heuristic/distances.rs:250
↓ 2 callers
Function
char_counts
(a: Seq)
pa-heuristic/src/heuristic/distances.rs:173
↓ 2 callers
Method
check_consistency
Returns true when the match can be pruned without causing consistency problems.
pa-heuristic/src/prune.rs:328
↓ 2 callers
Method
check_top_bot_val
Assert that the vertical difference between the top and bottom values is correct.
pa-base-algos/src/nw/bitpacking.rs:242
↓ 2 callers
Method
clone_from
(&mut self, source: &Self)
pa-base-algos/src/nw/bitpacking.rs:113
↓ 2 callers
Method
compute_next_block
TODO: Allow updating/overwriting as well.
pa-base-algos/src/nw/affine.rs:241
↓ 2 callers
Method
compute_next_block
The main function to compute the next block. Contains the implementation for incremental doubling (which is tedious and needs to maintain a lot of in
astarpa2/src/blocks.rs:205
↓ 2 callers
Method
contains
(&self, q: Pos)
pa-heuristic/src/contour/rotate_to_front.rs:32
↓ 2 callers
Method
cost
(&self, a: Seq, b: Seq)
pa-base-algos/src/nw.rs:338
↓ 2 callers
Method
cost_for_bounded_dist
The cost-only version uses linear memory. In particular, the number of fronts is max(sub, ins, del)+1.
pa-base-algos/src/dt.rs:1197
↓ 2 callers
Method
debug
( &self, pos: Pos, v: Layer, arrows: &F, )
pa-heuristic/src/contour/hint_contours.rs:92
↓ 2 callers
Method
distance
(&self, from: Pos, to: Pos)
pa-heuristic/src/heuristic/csh.rs:177
↓ 2 callers
Function
document
()
pa-web/src/html.rs:25
↓ 2 callers
Method
draw_point
(&mut self, p: CPos, color: Color)
pa-vis/src/sdl.rs:123
↓ 2 callers
Method
dt_back
(&self, &DtPos { diagonal, g }: &DtPos)
astarpa/src/alignment_graph.rs:29
↓ 2 callers
Method
expand_block
( &mut self, pos: Pos, size: Pos, g: Cost, f: Cost, h: Option<
pa-vis/src/visualizer.rs:274
↓ 2 callers
Method
extend_cost
(&self, s: Pos, t: Pos)
pa-affine-types/src/cost_model.rs:490
↓ 2 callers
Function
extend_diagonal
Given two sequences, a diagonal and point on it, expand it to a FR point. Returns the number of characters matched. NOTE: `d` and `fr` must be in Forw
pa-base-algos/src/dt.rs:280
↓ 2 callers
Function
extend_right_simd_viz
#[cfg(feature = "example")]
pa-heuristic/src/matches/prepruning.rs:65
↓ 2 callers
Method
f_call
(&mut self, pos: Pos, in_bounds: bool, fixed: bool)
pa-vis/src/visualizer.rs:196
↓ 2 callers
Method
fill_block
Iterate over columns `i_range` for `j_range`, storing a front per column.
pa-base-algos/src/nw/bitpacking.rs:1170
↓ 2 callers
Method
fill_rects
(&mut self, rects: &[(CPos, I, I)], color: Color)
pa-vis/src/sdl.rs:107
↓ 2 callers
Method
fill_with_blocks
Store a single block for each column in `i_range`.
astarpa2/src/blocks.rs:573
↓ 2 callers
Function
gen_seqs
()
pa-test/src/lib.rs:24
↓ 2 callers
Method
get
(blocks: &Vec<BlockElem>, g: Cost, d: I)
astarpa2/src/blocks/trace.rs:261
↓ 2 callers
Method
get_diff
Get the difference from row `j` to `j+1`.
pa-base-algos/src/nw/bitpacking.rs:257
↓ 2 callers
Method
get_diff
Get the difference from row `j` to `j+1`.
astarpa2/src/block.rs:134
↓ 2 callers
Function
get_matches
TODO: This should return &[I] instead.
pa-heuristic/src/matches/exact.rs:260
↓ 2 callers
Method
h
(&self, _pos: Pos)
pa-heuristic/src/heuristic.rs:185
↓ 2 callers
Method
h
(&self, pos: Pos)
pa-heuristic/src/heuristic/sh.rs:88
↓ 2 callers
Method
h_mut
(&mut self)
pa-base-algos/src/lib.rs:210
↓ 2 callers
Method
h_mut
(&mut self)
astarpa2/src/params.rs:293
↓ 2 callers
Function
hash_a_single
Build a hashset of the seeds in a, and query all kmers in b.
pa-heuristic/src/matches/exact.rs:72
↓ 2 callers
Function
hash_b
Build a hashset of the seeds in a, and query all kmers in b.
pa-heuristic/src/matches/exact.rs:28
↓ 2 callers
Function
hash_b_single
Build a hashset of the seeds in a, and query all kmers in b.
pa-heuristic/src/matches/exact.rs:88
↓ 2 callers
Function
hash_to_single_vec
( qgrams_hashed: impl Iterator<Item = (i32, usize)> + Clone, qgrams_lookup: impl Iterator<Item = (i32,
pa-heuristic/src/matches/exact.rs:105
↓ 2 callers
Function
hash_to_smallvec
( qgrams_hashed: impl Iterator<Item = (i32, usize)>, qgrams_lookup: impl Iterator<Item = (i32, usize)>
pa-heuristic/src/matches/exact.rs:40
↓ 2 callers
Method
index_mut
(&mut self, _index: usize)
pa-base-algos/src/nw/affine.rs:35
↓ 2 callers
Method
initial_values
Return the start value and initial increment based on DoublingStart.
astarpa2/src/band.rs:13
↓ 2 callers
Method
is_empty
(&self)
astarpa/src/bucket_queue.rs:82
↓ 2 callers
Method
is_score_at_least
Returns None when false, or the first layer >= v that contains the query point.
pa-heuristic/src/contour/hint_contours.rs:125
↓ 2 callers
Method
is_seed_end
(&self, pos: Pos)
pa-heuristic/src/seeds.rs:127
↓ 2 callers
Method
is_seed_start
(&self, pos: Pos)
pa-heuristic/src/seeds.rs:122
↓ 2 callers
Method
iterate_outgoing_edges
(&self, p: Pos, mut f: F)
astarpa/src/alignment_graph.rs:151
↓ 2 callers
Method
j_range_rounded
(&self)
pa-base-algos/src/nw/bitpacking.rs:143
↓ 2 callers
Method
kmin
(&self)
pa-heuristic/src/matches.rs:374
↓ 2 callers
Function
lookup_a_in_bm_hashmap
(a: Seq, b: Seq, k: I)
pa-heuristic/benches/matches_inexact.rs:209
↓ 2 callers
Function
lookup_b_in_am_hashmap
(a: Seq, b: Seq, k: I)
pa-heuristic/benches/matches_inexact.rs:90
↓ 2 callers
Function
lookup_bm_in_a_hashmap
(a: Seq, b: Seq, k: I)
pa-heuristic/benches/matches_inexact.rs:242
↓ 2 callers
Method
m_mut
(&mut self)
pa-base-algos/src/front.rs:259
↓ 2 callers
Function
make_aligner_with_visualizer
Build a type-erased aligner object from parameters.
astarpa/src/lib.rs:72
↓ 2 callers
Function
maketimer
()
pa-web/index.js:29
↓ 2 callers
Method
matches_for_start
Iterates over all matches starting in the given `pos`.
pa-heuristic/src/prune.rs:203
↓ 2 callers
Method
max_del_for_cost
(&self, s: Cost)
pa-affine-types/src/cost_model.rs:395
↓ 2 callers
Method
max_ins_for_cost
(&self, s: Cost)
pa-affine-types/src/cost_model.rs:387
↓ 2 callers
Method
mut_match_end
(&mut self, m: &Match)
pa-heuristic/src/prune.rs:309
↓ 2 callers
Method
mut_match_start
(&mut self, m: &Match)
pa-heuristic/src/prune.rs:303
↓ 2 callers
Function
parent
(states: &HashMap<Pos, State<Hint>>, pos: Pos, g: Cost)
astarpa/src/astar.rs:263
↓ 2 callers
Method
pop
(&mut self)
astarpa/src/bucket_queue.rs:60
↓ 2 callers
Function
preserve_for_local_pruning
Returns `false` for matches that should be removed by local pruning. After covering `i <= p` additional seeds, the cost should be less than `(i+1)*r`.
pa-heuristic/src/matches/prepruning.rs:95
↓ 2 callers
Method
print_internal
(&self, newline: bool)
astarpa/src/stats.rs:168
↓ 2 callers
Method
prune_filter
(&mut self, f: &mut F)
pa-heuristic/src/contour/bruteforce.rs:41
↓ 2 callers
Method
prune_match
(&mut self, m: &Match)
pa-heuristic/src/prune.rs:294
↓ 2 callers
Method
prune_with_hint
(&mut self, seeds: &Seeds, a: Arrow, hint: Hint)
pa-heuristic/src/contour/sh_contours.rs:118
↓ 2 callers
Method
push_op
(&mut self, op: AffineCigarOp)
pa-affine-types/src/cigar.rs:126
↓ 2 callers
Function
qgram_index
A qgram index first stores the count per kmer in a list of size 4^k. If 4^k is more than the size of the input (typically the case for us), this is sl
pa-heuristic/src/matches/exact.rs:195
↓ 2 callers
Method
reset
Resize the current front for the given range, reusing the buffer sizes.
pa-base-algos/src/front.rs:222
↓ 2 callers
Method
reset
(&mut self)
pa-base-algos/src/nw/bitpacking.rs:843
↓ 2 callers
Method
reuse_next_block
(&mut self, i_range: IRange, j_range: JRange)
pa-base-algos/src/nw/bitpacking.rs:389
↓ 2 callers
Method
reuse_next_block
The next block can be reused from an earlier iteration. Simply increment the last_block_idx, update the i_range, and check that the reused block indee
astarpa2/src/blocks.rs:190
↓ 2 callers
Method
root_potential
(&self)
pa-heuristic/src/heuristic/sh.rs:115
↓ 2 callers
Method
rotate
(&mut self, range: RangeInclusive<I>)
pa-base-algos/src/front.rs:134
← previous
next →
201–300 of 930, ranked by callers