Learn R Programming

hsphase (version 3.0.0)

bmh: Block Partitioning

Description

Identifies the block structure (chromosome segments) in a half-sib family that each individual inherited from its sire.

Usage

bmh(
  GenotypeMatrix,
  forwardVectorSize = 30,
  excludeFP = TRUE,
  nsap = 3,
  fillMissing = FALSE
)

Arguments

Value

A matrix of block structure containing 1, 2, and 0. Values 1 and 2 represent the two sire strands (arbitrary labeling within a chromosome), and 0 indicates unknown origin.

See Also

ssp, phf, aio, imageplot

Examples

Run this code
genotype <- matrix(c(
  0,2,1,1,1,
  2,0,1,2,2,
  2,2,1,0,2,
  2,2,1,1,1,
  0,0,2,1,0
), ncol = 5, byrow = TRUE)

bmh(genotype)

Run the code above in your browser using DataLab