cmaf: cmaf

Description Usage Arguments Value Examples

View source: R/ctools.R

Description

Computes the minor allele frequencies of a marker-matrix.

Usage

1
cmaf(X)	

Arguments

X

Marker matrix with {-1,0,1} coding

Value

Numeric Vector of minor allele frequencies for every column in X

Examples

1
2
3
4
5
# generate random data
rand_data(500,5000)

# compute minor allele frequencies
mafs <- cmaf(M)

cgenpp documentation built on May 21, 2017, 3:30 a.m.

Search within the cgenpp package
Search all R packages, documentation and source code