Learn R Programming

DOQTL (version 1.8.0)

interpolate.markers: interpolate haplotype or genotype probabilities from one set of markers to another.

Description

Given a matrix of data with markers in rows and data in columns, interpolate the values in each column from the marker spacing in 'from' to the marker spacing in 'to'.

Usage

interpolate.markers(data, from, to)

Arguments

data
Numeric matrix with markers in rows and data in columns. Marker names must be in rownames and must match column 1 of from.

Value

Numeric matrix of values interpolated onto the spacing provided in 'to'.

Details

This function assumes an even and overlapping set of markers in from and to. It may not behave correctly if the marker sets do not overlap.

Examples

Run this code
  ## Not run: 
#     interpolate.markers(data, from, to)
#   ## End(Not run)

Run the code above in your browser using DataLab