dot-hblock: Build haplotype blocks from a BMH result matrix (native...

.hblockR Documentation

Build haplotype blocks from a BMH result matrix (native routine wrapper)

Description

Internal wrapper around the native C routine hblock. It transforms a BMH result matrix into a block representation, with an optional maximum block size constraint.

Usage

.hblock(bmhResult, MaxBlock = 400)

Arguments

bmhResult

A numeric/integer matrix containing BMH results (block matching/haplotype-block intermediate output). Must be a matrix.

MaxBlock

Integer scalar. Maximum block size (default: 400).

Details

This function transposes and flattens bmhResult before passing it to compiled code via .C: .C("hblock", ...).

Value

A matrix (same general shape as bmhResult) containing inferred block structure. Row and column names are propagated from bmhResult where available.


hsphase documentation built on Feb. 17, 2026, 5:07 p.m.