Info.Locus {LDcorSV} | R Documentation |
Information on loci
Description
For a locus, this function computes the minor allelic frequency, the frequency of heterozygous genotypes and the missing value frequency.
Usage
Info.Locus(locus,data="G")
Arguments
locus |
Numeric vector of allelic doses. |
data |
Value equal to "G" or "H" depending on the type of data (Genotype or Haplotype). Default value is "G". |
Value
The returned value is a numeric vector of three values which are respectively the minor allelic frequency, the frequency of heterozygous genotypes (NA if haplotype data) and the missing value frequency.
Author(s)
David Desrousseaux, Florian Sandron, Aurélie Siberchicot, Christine Cierco-Ayrolles and Brigitte Mangin
Examples
data(data.test)
Geno <- data.test[[1]]
info <- apply(Geno, 2, Info.Locus)
info
[Package LDcorSV version 1.3.3 Index]