class HTS::Bam::Pileup::Alignment

Overview

Thin wrapper around a single bam_pileup1_t entry. Small fields are copied so they remain valid after the iterator moves on.

Defined in:

hts/bam/pileup.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(entry : Pointer(LibHTS::BamPileup1T), header : Bam::Header) #

[View source]

Instance Method Detail

def base : Char | Nil #

[View source]
def base_qual : UInt8 | Nil #

[View source]
def bitfields : UInt32 #

[View source]
def del? : Bool #

Bitfield helpers


[View source]
def head? : Bool #

[View source]
def indel : Int32 #

[View source]
def qname : String #

Query name for the underlying read without duplicating the full record. Call this before the pileup iterator advances or closes.


[View source]
def query_pos : Int32 #

[View source]
def record : Bam::Record #

Lazily duplicates the underlying bam1_t. This is convenient but relatively expensive in pileup hot paths; prefer direct accessors such as #base, #base_qual, and #qname when possible. Call this before the pileup iterator advances or closes.


[View source]
def refskip? : Bool #

[View source]
def tail? : Bool #

[View source]