Minimap2::MmIdx
The minimap2 index — mirrors mm_idx_t
Constructors
Class methods
from_file(fp : BSeqFile, w : Int32, k : Int32, b : Int32, flag : Int32, mini_batch_size : Int32, n_threads : Int32, batch_size : UInt64) : MmIdx | Nil
Build index from a BSeqFile pipeline (mirrors mm_idx_gen).
Check if a file is a prebuilt index; returns file size if yes, 0 if no.
Instance methods
Maximum occurrence threshold at fraction f (mirrors mm_idx_cal_max_occ).
Ensure s_arr has room for total_len bases (allocating in chunks of 8).
flag
SourceLookup positions for a minimizer (mirrors mm_idx_get). Returns the array of hit positions, or nil if not found.
Retrieve decoded sequence (mirrors mm_idx_getseq). Returns encoded bases (0-3), or -1 on range error.
index
Sourceindex_name
Build name → id map (mirrors mm_idx_index_name). Returns true if duplicate names detected.
n_alt
Sourcen_seq
Sourcename_map
SourceProcess all buckets after collection (mirrors mm_idx_post). Each bucket is independent, so we fan them out across a Parallel context.
s_arr
Sourceseq
Source