struct HTS::Bcf::Format::GenotypeView

Overview

Borrowed view of one sample's encoded GT values.

EXPERIMENTAL

Defined in:

hts/bcf/format.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(values : Slice(Int32)) #

[View source]

Instance Method Detail

def each_allele(& : Int32, Bool, Bool -> ) : Nil #

Yields allele index, phased flag, and missing flag for each allele. Missing alleles use -1 as their allele index. Vector-end sentinels are excluded from this view and are not yielded.


[View source]
def ploidy : Int32 #

[View source]
def values : Slice(Int32) #

[View source]