Learn R Programming

hsphase (version 3.0.0)

.fillGap: Fill gaps in a paternal strand vector (native routine wrapper)

Description

Internal wrapper around the native C routine fillGap. It fills zero-valued gaps in a paternal-strand vector by propagating values from neighbouring non-zero positions (see native implementation for exact rules).

Usage

.fillGap(paternalStrandBMH)

Value

An integer vector of the same length as paternalStrandBMH

containing the gap-filled strand values.

Arguments

paternalStrandBMH

An integer (or numeric) vector representing the paternal strand state (e.g., output from block-building routines). The vector is coerced to integer before calling native code.

Author

mhf

Details

This function calls compiled code via .C: .C("fillGap", ...).

See Also