imputeGenosWithMean | R Documentation |
Impute missing SNP genotypes with the mean of the non-missing.
The code was inspired from the A.mat
function from the rrBLUP package.
imputeGenosWithMean(X, min.maf = 0.1, max.miss = 0.3, rm.still.miss = TRUE)
X |
matrix of bi-allelic SNP genotypes encoded in allele doses in 0,1,2, with genotypes in rows and SNPs in columns; missing values should be encoded as NA |
min.maf |
minimum minor allele frequency (before imputation) below which SNPs are discarded |
max.miss |
maximum amount of missing genotypes (before imputation) above which SNPs are discarded |
rm.still.miss |
if TRUE, remove SNP(s) still with missing genotype(s) after imputation (depending on |
matrix with imputed genotypes
Timothee Flutre
imputeGenosWithMeanPerPop
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.