imputeSnp: Impute missing information at a medoid SNPs from a group of...

Description Usage Arguments

View source: R/snpImpute.R

Description

Uses neighboring SNPs in the clustering hierarchy to impute as many as possible alleles to positions with missing values at medoid SNPs.

Usage

1
2
imputeSnp(inxSnpOfInt, snp, hier, hierLeafs, clust, medoSnps, naSnps,
  flipAlleles, min.absCor)

Arguments

inxSnpOfInt

a vertor of the snp of interest.

snp

an object of class snpMatrix.

hier

an object of class hierarchy.

hierLeafs

a vector of leafs of the hierarchy.

clust

a named vector of clusters.

medoSnps

a vector of medo turue o false.

naSnps

a vector of NA indeces.

flipAlleles

a vertor of telling for each SNP if allele one has allele freq. > 0.5 or not.

min.absCor

a minimum value of correlation. If missing values still exist if this point in the hierarchy is reached, imputing is done via allele frequencies.


QTCAT/qtcat documentation built on April 20, 2021, 11:20 p.m.