int_neighbor {rNeighborQTL} | R Documentation |
Testing marker-by-marker epistasis in neighbor QTL effects
Description
A function to test interaction terms between one focal marker and the other markers across a genome.
Usage
int_neighbor(
genoprobs,
pheno,
smap,
scale,
addcovar = NULL,
addQTL,
intQTL,
grouping = rep(1, nrow(smap)),
response = c("quantitative", "binary"),
contrasts = NULL
)
Arguments
genoprobs |
Conditional genotype probabilities as taken from |
pheno |
A vector of individual phenotypes. |
smap |
A matrix showing a spatial map for individuals. The first and second column include spatial positions along an x-axis and y-axis, respectively. |
scale |
A numeric scalar indicating the maximum spatial distance between a focal individual and neighbors to define neighbor effects. |
addcovar |
An optional matrix including additional non-genetic covariates. It contains no. of individuals x no. of covariates. |
addQTL |
A vector containing marker names that are considered covariates. This argument is necessary for |
intQTL |
A name of a focal marker to be tested for its epistasis with the other markers in neighbor effects. The marker name must be included by |
grouping |
An optional integer vector assigning each individual to a group. This argument can be used when |
response |
An optional argument to select trait types. The |
contrasts |
An optional vector composed of three TRUE/FALSE values, which represents the presence/absence of specific genotypes as c(TRUE/FALSE, TRUE/FALSE, TRUE/FALSE) = AA, AB, BB. If |
Details
This is an optimal function to test two-way interactions between the main neighbor effect of a focal marker given by intQTL
and the others.
All the main neighbor effects are first estimated using eff_neighbor()
, and then a two-way interaction term between the focal marker effect and its counterpart was considered an additional explanatory variable.
LOD score was compared between models with or without the two-way interaction.
Value
A matrix of LOD scores for neighbor epistasis effects, with the chromosome numbers and positions. The row names correspond to marker names.
chr
Chromosome numberpos
Marker positionLOD_int
LOD score for epistasis in neighbor effects between a focal and the other markers
Author(s)
Yasuhiro Sato (sato.yasuhiro.36c@kyoto-u.jp)
See Also
Examples
set.seed(1234)
test_map <- qtl::sim.map(len=rep(20,5),n.mar=3,include.x=FALSE)
test_cross <- qtl::sim.cross(test_map,n.ind=50)
test_smap <- cbind(runif(50,1,100),runif(50,1,100))
test_genoprobs <- qtl::calc.genoprob(test_cross,step=2)
test_int <- int_neighbor(genoprobs=test_genoprobs,
pheno=test_cross$pheno$phenotype,
smap=test_smap,scale=20,
addQTL=c("c1_D1M1","c1_D1M2"),intQTL="c1_D1M1"
)
plot_nei(test_int, type="int")