class Minimap2::Aligner

Overview

High-level aligner API backed by minimap2 index and mapping routines.

Defined in:

minimap2/aligner.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(path : String, preset : String | Nil = nil, threads : Int32 = 1, output : String | Nil = nil, cigar : Bool = false) #

Shortcut constructor using common options.

Prefer Aligner.build for explicit configuration chains.


[View source]
def self.new(path : String, preset : String | Nil = nil, threads : Int32 = 1, output : String | Nil = nil, cigar : Bool = false, &block : AlignerBuilder -> ) #

Shortcut constructor with additional builder customization block.

Keyword options are applied before yielding the builder.


[View source]
def self.new(idxopt : LibMinimap2::MmIdxoptT, mapopt : LibMinimap2::MmMapoptT, threads : Int32, path : String, output : String | Nil) #

[View source]

Class Method Detail

def self.build : AlignerBuilder #

Create a new AlignerBuilder.


[View source]
def self.builder : AlignerBuilder #

DEPRECATED Use .build instead


[View source]
def self.cigar_op_char(op : UInt8) : Char #

[View source]

Instance Method Detail

def finalize #

Release loaded minimap2 index parts.


[View source]
def idx_opt : LibMinimap2::MmIdxoptT #

[View source]
def map(seq : String, cs : Bool = false, md : Bool = false, ds : Bool = false, max_frag_len : Int32 | Nil = nil, extra_flags : Array(UInt64) | Nil = nil, query_name : String | Nil = nil) : Array(Mapping) #

Map a query string against the loaded index.

Set cs, md, ds to include optional alignment tag strings.


[View source]
def map(seq : Bytes, cs : Bool = false, md : Bool = false, ds : Bool = false, max_frag_len : Int32 | Nil = nil, extra_flags : Array(UInt64) | Nil = nil, query_name : String | Nil = nil) : Array(Mapping) #

Map a query byte slice against the loaded index.

extra_flags accepts raw minimap2 flag constants from LibMinimap2.


[View source]
def map_opt : LibMinimap2::MmMapoptT #

[View source]
def n_seq : UInt32 #

Number of reference sequences in the first loaded index part.


[View source]
def seq(name : String, start : Int32 = 0, stop : Int32 = Int32::MAX) : String | Nil #

Fetch a reference subsequence by contig name.

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


[View source]