class HTS::Bam::Pileup

Overview

High-level pileup iterator over a single BAM/CRAM input. Yields Column objects with tid, pos, and alignments at each position.

Included Modules

Defined in:

hts/bam/pileup.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(bam : Bam, region : String | Nil = nil, maxcnt : Int32 | Nil = nil) #

Create a Pileup iterator @param bam [HTS::Bam] @param region [String, nil] Optional region string (e.g., "chr1:1000-2000", requires index) @param maxcnt [Int32, nil] Max per-position depth (capped)


[View source]

Class Method Detail

def self.open(bam : Bam, region : String | Nil = nil, maxcnt : Int32 | Nil = nil, &) #

Open a Pileup iterator with block (RAII style)


[View source]

Instance Method Detail

def close : Nil #

Release native resources


[View source]
def each(&block : Column -> ) : Nil #

Iterate over pileup columns


[View source]
def finalize #

[View source]
def reset : Nil #

Reset internal state, if needed by the caller


[View source]