gene.effect: Get genetic effect

Description Usage Arguments Value Author(s) Examples

Description

Get genetic effect for each individual based on the genotype.

Usage

1
gene.effect(geno, gene.coef, model = c("epistasis"), ...)

Arguments

geno

a data.frame or a matrix containing the genotype information.

gene.coef

a list with the coefficients of genetic effects.

model

a string specifying the genetic model to use for the simulation. Default is "epistasis".

...

not used.

Value

a data.frame including genetic effects.

Author(s)

Beibei Jiang beibei_jiang@psych.mpg.de and Benno Pütz puetz@psych.mpg.de

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# 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")

# take a look at geno and gene.coef
geno
gene.coefficients

# get gene effects
gene.effect(geno, gene.coefficients)

SimPhe documentation built on May 1, 2019, 9:10 p.m.