module

Minimap2

Constants

VERSION = {{ (`shards version /tmp/tmp.mHEbGG/src/src`).chomp.stringify }}

Class methods

fetch_seq(idx : Pointer(LibMinimap2::MmIdxT), name : String, start : Int32 = 0, stop : Int32 = Int32::MAX) : String | Nil

Fetch a subsequence from an index by contig name.

Coordinates are 0-based, half-open (start...stop).

Source
idx_seq(seq : String, w : Int32, k : Int32, is_hpc : Bool = false, bucket_bits : Int32 = 14) : Pointer(LibMinimap2::MmIdxT)

Build an in-memory index from a single sequence.

Useful for tests and small ad-hoc alignment tasks.

Source
revcomp(seq : String) : String

Utilities adapted from minimap2 mappy helpers.

Returns the reverse-complement of a DNA/RNA sequence string.

Source
revcomp(seq : Bytes) : String

Returns the reverse-complement of a sequence byte slice.

Source

Nested types