Description Usage Arguments Value Author(s) Examples
Get genetic effect for each individual based on the genotype.
1 | gene.effect(geno, gene.coef, model = c("epistasis"), ...)
|
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. |
a data.frame including genetic effects.
Beibei Jiang beibei_jiang@psych.mpg.de and Benno Pütz puetz@psych.mpg.de
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.