1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
use ;
pub use Interval;
/// A trait for data structures that efficiently find overlapping genomic intervals.
///
/// This trait defines the interface for interval overlap query data structures. Implementors
/// provide efficient algorithms for finding all intervals that overlap with a query range.
///
/// # Type Parameters
///
/// * `I` - The integer type used for interval coordinates (e.g., `u32`, `usize`). Must be an
/// unsigned primitive integer type that is thread-safe.
/// * `T` - The type of value associated with each interval (e.g., gene name, peak score).
/// Must be cloneable, comparable, and thread-safe.
///
/// # Implementations
/// The crate provides two main implementations:
///
/// * [`AIList`](crate::AIList) - Augmented Interval List, optimized for genomic data with
/// high-coverage regions. Uses a decomposition strategy for efficient queries.
/// * [`Bits`](crate::Bits) - Binary Interval Search, uses binary search for fast overlap
/// detection. Particularly efficient for sorted sequential queries.