geno.freq: Summarizing Genotypic Data

Description Usage Arguments Value Author(s) Examples

View source: R/geno.freq.r

Description

This function is to calculate frequecies of missing data, three genotypes, and MAF (minor allelic frequecies), and to test Hardy-Weinberg Equilibrium (HWE) for each marker.

Usage

1
geno.freq(geno, freq = TRUE, digits = 4, verbose = FALSE) 

Arguments

geno

a matrix of genotypic data.

freq

logical. Shows frequencies or counts.

digits

digits to round with print.

verbose

logical. If TRUE, print out markers removed or with only two genotypes.

Value

This function returns a matrix consisting of frequecies of missing data, three genotypes, MAF (minor allelic frequecies), and p-value for testing HWE.

Author(s)

Nengjun Yi, nyi@uab.edu

Examples

1
2
3
4
5
6
library(BhGLM)

x = sim.x(n=100, m=10, genotype=6:10)
geno = x[, 6:10] #get genotype data
geno.freq(geno, freq=TRUE)
geno.freq(geno, freq=FALSE)

nyiuab/BhGLM documentation built on Jan. 9, 2022, 3:31 p.m.