Class: Minimap2::Aligner
- Inherits:
-
Object
- Object
- Minimap2::Aligner
- Defined in:
- lib/minimap2/aligner.rb,
ext/ruby_minimap2/ruby_minimap2.c
Overview
Builds or loads a minimap2 index and maps sequences against it.
Calls on the same Aligner are thread-safe and serialized. Different Aligner instances can map concurrently.
Instance Method Summary collapse
-
#align(*args) ⇒ Array<Alignment>
Maps one sequence or a paired sequence.
-
#free_index ⇒ nil
Releases every native index owned by this object.
-
#index? ⇒ Boolean
Whether a live index is available.
-
#initialize(*args) ⇒ Object
constructor
Creates an aligner from a FASTA/FASTQ/index file or one in-memory sequence.
-
#k ⇒ Integer
Minimizer k-mer length.
-
#n_seq ⇒ Integer
Number of sequences across all index parts.
-
#seq(*args) ⇒ String?
Retrieves a subsequence from the index.
-
#seq_names ⇒ Array<String>
Returns names in index order, including duplicate names.
-
#w ⇒ Integer
Minimizer window size.
Constructor Details
#initialize(*args) ⇒ Object
Creates an aligner from a FASTA/FASTQ/index file or one in-memory sequence.
70 71 |
# File 'lib/minimap2/aligner.rb', line 70 class Aligner end |
Instance Method Details
#align(*args) ⇒ Array<Alignment>
Maps one sequence or a paired sequence.
70 71 |
# File 'lib/minimap2/aligner.rb', line 70 class Aligner end |
#free_index ⇒ nil
Releases every native index owned by this object. Calling it repeatedly is safe.
70 71 |
# File 'lib/minimap2/aligner.rb', line 70 class Aligner end |
#index? ⇒ Boolean
Returns whether a live index is available.
70 71 |
# File 'lib/minimap2/aligner.rb', line 70 class Aligner end |
#k ⇒ Integer
Returns minimizer k-mer length.
70 71 |
# File 'lib/minimap2/aligner.rb', line 70 class Aligner end |
#n_seq ⇒ Integer
Returns number of sequences across all index parts.
70 71 |
# File 'lib/minimap2/aligner.rb', line 70 class Aligner end |
#seq(*args) ⇒ String?
Retrieves a subsequence from the index. By default, reads to the end of the sequence.
70 71 |
# File 'lib/minimap2/aligner.rb', line 70 class Aligner end |
#seq_names ⇒ Array<String>
Returns names in index order, including duplicate names.
70 71 |
# File 'lib/minimap2/aligner.rb', line 70 class Aligner end |
#w ⇒ Integer
Returns minimizer window size.
70 71 |
# File 'lib/minimap2/aligner.rb', line 70 class Aligner end |