class HTS::Bam::Mpileup

Overview

High-level mpileup iterator over multiple BAM/CRAM inputs. Yields an Array of Pileup::Column (one per input) for each position.

Included Modules

Defined in:

hts/bam/mpileup.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(inputs : Array(Bam), maxcnt : Int32 | Nil = nil, overlaps : Bool = false) #

Minimal constructor: accept Array(Bam). (String inputs or regions can be added later.)


[View source]

Class Method Detail

def self.open(inputs : Array(Bam), maxcnt : Int32 | Nil = nil, overlaps : Bool = false, &) #

Open an Mpileup iterator with block (RAII style)


[View source]

Instance Method Detail

def close : Nil #

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

Iterate and yield per-position columns array (aligned by tid,pos across inputs)


[View source]
def finalize #

[View source]