struct
HTS::Bam::Mpileup::Position
- HTS::Bam::Mpileup::Position
- Struct
- Value
- Object
Overview
A zero-copy view of one genomic position across all inputs. It is an ordered collection of Pileup::Column views (one per input) sharing the same tid/pos. It holds only pointers into htslib's current pileup buffer; nothing is allocated per position and per-read Alignment values are built lazily only for the columns the consumer touches.
BORROWING CONTRACT: a Position, its Columns, and any Alignment obtained from them are valid ONLY during the current iteration step. To retain data across positions, read the copied-out scalars (Alignment#base, #base_qual, #query_pos) or call Alignment#record.
Defined in:
hts/bam/mpileup.crConstructors
Instance Method Summary
-
#[](input : Int32) : HTS::Bam::Pileup::Column
Column view for one input.
-
#count : Int32
Number of inputs (files) at this position.
-
#count(& : HTS::Bam::Pileup::Column -> Bool) : Int32
Count input columns matching the block without materializing an Array.
-
#depth(input : Int32) : Int32
Raw pileup depth for one input at this position (before per-base filters).
-
#each(& : HTS::Bam::Pileup::Column -> ) : Nil
Iterate the per-input Column views.
- #pos : Int64
-
#size : Int32
Number of inputs (files) at this position.
- #tid : Int32
Constructor Detail
Instance Method Detail
Count input columns matching the block without materializing an Array.
Raw pileup depth for one input at this position (before per-base filters).