Learn R Programming

hsphase (version 3.0.0)

co: Crossover Detection

Description

Detects possible crossover segments by comparing pairs of individuals in a half-sib family.

Usage

co(genotypeMatrix)

Value

A matrix Returns a matrix with the number of crossover events for each site.

Arguments

genotypeMatrix

matrix. Half-sib genotypes (one individual per row; SNPs in columns ordered by map position). Genotypes must be numeric: 0, 1, 2 for AA, AB, BB and 9 for missing.

Examples

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

co(genotype)

Run the code above in your browser using DataLab