get.freq: Calculate the gene(allele) frequency

Description Usage Arguments Value Author(s) Examples

Description

Calculate the gene(allele) frequency for each of the SNPs.

Usage

1
get.freq(geno, epi.pars, ...)

Arguments

geno

a dataframe of genotype data: columns are the SNPs; lines are indviduals.

epi.pars

a data.frame or a matrix containing the parameter information for epistatic effect: additive * additive, additive * dominance, dominance * additive, and dominance * dominance.

...

not used

Value

a dataframe with allele frequencies (major and minor).

Author(s)

Beibei Jiang beibei_jiang@psych.mpg.de

Examples

1
2
3
4
5
6
7
# genotype file: rows are individuals and columns are SNPs
fgeno.path <- system.file("extdata", "10SNP.txt", package="SimPhe")

# get genotype
geno <- read.geno(fgeno.path, ftype = "snp.head")

get.freq(geno, epistasis.pars)

beibeiJ/SimPhe documentation built on May 9, 2019, 4:21 a.m.