Interpolate between SNPs at the same cM value.

Share:

Description

Go through the SNPs and look for stretches where the differences in cM values from one SNP to the next equals 0. Interpolate from the first SNP to the last SNP in such a stretch.

Usage

1
  fill.in.snps(snps)

Arguments

snps

Data.frame containing the marker locations. SNP ID, chromosome, Mb anc cM locations in columns 1 through 4, respectively.

Details

On each chromosome, look for sets of contiguous markers that have the same cM location. Interpolate evenly spaced markers spanning the markers proximal and distal to this set.

Value

Data.frame containing the marker locations. SNP ID, chromosome, Mb anc cM locations in columns 1 through 4, respectively.

Author(s)

Daniel Gatti

Examples

1
  ## Not run:  fill.in.snps(snps) 

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.