module Depth::Core::Cigar

Direct including types

Defined in:

depth/core/cigar.cr

Instance Method Summary

Instance Method Detail

def cigar_each_event(cigar, ipos : Int32, & : Int32, Int32 -> ) #

Streaming iterator for start/end events (pos, +1/-1) without allocations


[View source]
def cigar_each_segment(cigar, ipos : Int32, & : Tuple(Int32, Int32) -> ) #

Stream segments without building an array


[View source]
def cigar_fill_events!(cigar, ipos : Int32, evbuf : Array(Tuple(Int32, Int32))) : Nil #

CIGAR → start/end events on reference, filling provided buffer


[View source]
def cigar_segments(cigar, ipos : Int32) : Array(Tuple(Int32, Int32)) #

Build contiguous reference-aligned segments [start, stop) for M/= /X parts.


[View source]
def cigar_start_end_events(cigar, ipos : Int32) : Array(Tuple(Int32, Int32)) #

Back-compatible helper that allocates a new array (prefer cigar_fill_events!)


[View source]
def inc_coverage(cigar, ipos : Int32, a : Coverage) #

[View source]