Info.Locus: Information on loci

Description Usage Arguments Value Author(s) Examples

View source: R/Info.Locus.R

Description

For a locus, this function computes the minor allelic frequency, the frequency of heterozygous genotypes and the missing value frequency.

Usage

1
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

1
2
3
4
data(data.test)
Geno <- data.test[[1]]
info <- apply(Geno, 2, Info.Locus)
info

LDcorSV documentation built on Aug. 26, 2020, 9:06 a.m.