checkG: Check for consistency in genetic effects

Description Usage Arguments Value Author(s) References

View source: R/checkG.R

Description

Given output from pcgen or pcgenFast, this function checks whether the estimated graph is consistent with the set of traits having significant genetic variance. The function detects traits that have significant genetic variance but for which there is no partially directed path from G.

Usage

1
checkG(pcgen.output, suffStat, alpha = 0.01, covariates = NULL)

Arguments

pcgen.output

A graph with nodes G (genotype) and a number of traits. Typically output from pcgen or pcgenFast.

suffStat

A data.frame, of which the first column is the factor G (genotype), and subsequent columns contain the traits, and optionally some QTLs. The name of the first column should be G.

alpha

The significance level used in each conditional independence test. Default is 0.01.

covariates

A data.frame containing covariates, to be used in each conditional independence test. Cannot contain factors. Should be either NULL (default) or a data.frame with the same number of rows as suffStat. An intercept is already included for each trait in suffStat; covariates should not contain a column of ones.

Value

A logical matrix of dimension (p+1) \times (p+1), p being the number of traits. Most entries are FALSE, except those in the first row and column for which there are conflicts. Entries [1, j] and [j, 1] are TRUE if the jth trait has significant genetic variance, but there is no partially directed path from G towards that trait. The matrix can then be used in a subsequent run of pcgen or pcgenFast, in the fixedEdges argument. The arguments suffStat, alpha and covariates should stay the same throughout (first run of pcgen, checkG, second run of pcgen).

Author(s)

Willem Kruijer and Pariya Behrouzi. Maintainers: Willem Kruijer willem.kruijer@wur.nl and Pariya Behrouzi pariya.behrouzi@gmail.com

References

Kruijer, W., Behrouzi, P., Rodriguez-Alvarez, M. X., Wit, E. C., Mahmoudi, S. M., Yandell, B., Van Eeuwijk, F., (2018, in preparation), Reconstruction of networks with direct and indirect genetic effects.


pcgen documentation built on May 2, 2019, 2:10 p.m.

Related to checkG in pcgen...