interpolate.markers: interpolate haplotype or genotype probabilities from one set...

View source: R/interpolate.markers.R View source: R/interploate.markers.R

interpolate.markersR Documentation

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.

itemfrom Data frame containing at least three columns with marker names, chromosome and position in columns 1, 2 & 3, respectively. itemto Data frame containing at least three columns with marker names, chromosome and position in columns 1, 2 & 3, respectively.

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.

Value

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

Author(s)

Daniel Gatti

Examples

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

dmgatti/DOQTL documentation built on April 7, 2024, 10:35 p.m.