module
Depth::Core::Cigar
Direct including types
Defined in:
depth/core/cigar.crInstance Method Summary
-
#cigar_each_event(cigar, ipos : Int32, & : Int32, Int32 -> )
Streaming iterator for start/end events (pos, +1/-1) without allocations
-
#cigar_each_segment(cigar, ipos : Int32, & : Tuple(Int32, Int32) -> )
Stream segments without building an array
-
#cigar_fill_events!(cigar, ipos : Int32, evbuf : Array(Tuple(Int32, Int32))) : Nil
CIGAR → start/end events on reference, filling provided buffer
-
#cigar_segments(cigar, ipos : Int32) : Array(Tuple(Int32, Int32))
Build contiguous reference-aligned segments [start, stop) for M/= /X parts.
-
#cigar_start_end_events(cigar, ipos : Int32) : Array(Tuple(Int32, Int32))
Back-compatible helper that allocates a new array (prefer cigar_fill_events!)
- #inc_coverage(cigar, ipos : Int32, a : Coverage)
Instance Method Detail
def cigar_each_event(cigar, ipos : Int32, & : Int32, Int32 -> )
#
Streaming iterator for start/end events (pos, +1/-1) without allocations
def cigar_each_segment(cigar, ipos : Int32, & : Tuple(Int32, Int32) -> )
#
Stream segments without building an array
def cigar_fill_events!(cigar, ipos : Int32, evbuf : Array(Tuple(Int32, Int32))) : Nil
#
CIGAR → start/end events on reference, filling provided buffer
def cigar_segments(cigar, ipos : Int32) : Array(Tuple(Int32, Int32))
#
Build contiguous reference-aligned segments [start, stop) for M/= /X parts.
def cigar_start_end_events(cigar, ipos : Int32) : Array(Tuple(Int32, Int32))
#
Back-compatible helper that allocates a new array (prefer cigar_fill_events!)