Package: |
GENESIS |
Type: |
Package |
Version: |
2.1.7 |
Date: |
2016-4-1 |
License: |
GPL-3 |
Depends: |
GWASTools |
Suggests: |
gdsfmt, SNPRelate, RUnit, BiocGenerics, knitr |
VignetteBuilder: |
knitr |
biocViews: |
SNP, GeneticVariability, Genetics, StatisticalMethod, DimensionReduction, PrincipalComponent, GenomeWideAssociation, QualityControl, BiocViews |
pcair
function, which takes genotype data and pairwise measures of kinship and ancestry divergence as input and returns PC-AiR PCs as the ouput.
The function pcairPartition
is called within pcair
and uses the PC-AiR algorithm to partition the sample into an ancestry representative `unrelated subset' and `related subset'.
The function plot.pcair
can be used to plot pairs of PCs from a class `pcair
' object returned by the function pcair
.
The function king2mat
can be used to convert output text files from the KING software (Manichaikul et al., 2010) into an R matrix of pairwise kinship coefficient estimates in a format that can be used by the functions pcair
and pcairPartition
.
The PC-Relate analysis is performed using the pcrelate
function, which takes genotype data and PCs from PC-AiR and returns estimates of kinship coefficients, IBD sharing probabilities, and inbreeding coefficients. The functions pcrelateReadKinship
, pcrelateReadInbreed
, and pcrelateMakeGRM
provide utilities for reading and making tables or matrices of the PC-Relate output.
There are two functions required to perform SNP genotype association testing with mixed models. First, fitNullMM
is called to fit the null model (i.e. no SNP genotype term) including fixed effects covariates, such as PC-AiR PCs, and random effects specified by their covariance structures, such as a kinship matrix created from PC-Relate output using pcrelateMakeGRM
. The function fitNullMM
uses AIREML to estimate variance components for the random effects, and the function varCompCI
can be used to find confidence intervals on the estimates as well as the proportion of total variability they explain; this allows for heritability estimation. Second, assocTestMM
is called with the null model output and the genotype data to perform either Wald or score based association tests.