HTS::Bam::BaseMod
Inherits Enumerable < Reference < Object
Base modification information from MM/ML tags View over a Record's MM/ML tags using htslib base-mod API
Constants
HTS_MOD_REPORT_UNCHECKED = 1_u32
Default flags for parsing base modifications via htslib HTS_MOD_REPORT_UNCHECKED = 1 (report unvalidated mods instead of failing)
Constructors
Instance methods
at_pos(position : Int32, max_mods : Int32 = 10) : Position | Nil
Get modifications at a specific query position (0-based); returns nil if none
close
Sourceeach_position(max_mods : Int32 = 10, &block : Position -> )
Alias for clarity and parity with common terminology
ensure_parsed!(flags : UInt32 = HTS_MOD_REPORT_UNCHECKED)
Sourcefinalize
Sourceparse(flags : UInt32 = HTS_MOD_REPORT_UNCHECKED) : Int32
Parse MM/ML tags; flags per HTSlib (e.g., HTS_MOD_REPORT_UNCHECKED = 1) Default to reporting unchecked modifications so we see MM/ML content without strict validation.
parsed?
Sourcequery_type(code : Char)
Sourcequery_type(code : String)
Sourcerecord
Sourceto_a
Returns an Array with all the elements in the collection.
(1..5).to_a # => [1, 2, 3, 4, 5]
to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>