Description Usage Arguments Value Author(s) See Also Examples
View source: R/get_impute_data.R
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.
1 | get_impute_data(index, data,two=T,segs)
|
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 |
segs |
A (non-negative) integer which reflects the number of segments considered. It is calculated in the program based on the user-defined |
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.
Philipp Hermann philipp.hermann@jku.at, Andreas Futschik
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) #####
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.