get_impute_data: Data management to obtain data used for imputation

Description Usage Arguments Value Author(s) See Also Examples

View source: R/get_impute_data.R

Description

This function obtains the neighbouring values for every segment without SNPs. The function either merges data of two or four neighbouring values. It is only used in the impute function.

Usage

1
get_impute_data(index, data,two=T,segs)

Arguments

index

this is a vector containing the integer number of the segments without SNPs.

data

A data vector containing the estimated recombination rates per segment.

two

A logical parameter indicating whether two neighbouring values (if TRUE) or four neighbouring values (if FALSE) should be provided.

segs

A (non-negative) integer which reflects the number of segments considered. It is calculated in the program based on the user-defined segLength.

Value

The function returns a vector containing the corresponding data which can be used for imputation. Note that the ordering is made that values of distance 1 are listed first in case that four neighbouring values are returned.

Author(s)

Philipp Hermann philipp.hermann@jku.at, Andreas Futschik

See Also

impute

Examples

1
2
3
##### Do not run these examples                                  #####
##### This command shows how it is used in the impute function   #####
##### sapply(index, get.impute.data, data, two = two)            #####

PhHermann/LDJump documentation built on Nov. 16, 2019, 12:53 p.m.