Title: | MArginal ePIstasis Test for Regions |
Version: | 1.1.2 |
Date: | 2020-09-24 |
Description: | A genetic analysis tool and variance component model for identifying marginal epistasis between pathways and the rest of the genome. 'MAPITR' uses as input a matrix of genotypes, a vector of phenotypes, and a list of pathways. 'MAPITR' then iteratively tests each pathway for epistasis between any variants within the pathway versus any variants remaining in the rest of the genome. 'MAPITR' returns results in the form of p-values for every pathway indicating whether the null model of there being no epistatic interactions between a pathway and the rest of the genome can be rejected. |
License: | MIT + file LICENSE |
URL: | https://github.com/mturchin20/MAPITR |
BugReports: | https://github.com/mturchin20/MAPITR/issues |
Depends: | R (≥ 3.3.0) |
Imports: | stats, doParallel, Rcpp (≥ 1.0.5), CompQuadForm |
Suggests: | testthat, knitr, rmarkdown |
Encoding: | UTF-8 |
LazyData: | true |
NeedsCompilation: | yes |
RoxygenNote: | 7.1.1 |
VignetteBuilder: | knitr |
LinkingTo: | Rcpp, RcppArmadillo |
Packaged: | 2020-09-25 03:52:13 UTC; mturchin20 |
Author: | Michael Turchin |
Maintainer: | Michael Turchin <michael_turchin@brown.edu> |
Repository: | CRAN |
Date/Publication: | 2020-09-28 13:20:12 UTC |
MArginal ePIstasis Test for Regions
(MAPITR
)
Description
Run MAPITR
for a group of pathways on a single
phenotype and a set of genome-wide SNPs
Usage
MAPITR(
Genotypes,
Phenotype,
Pathways,
Covariates = NULL,
CenterStandardize = TRUE,
OpenMP = FALSE,
cores = NULL,
...
)
Arguments
Genotypes |
A n x p matrix containing the genotypes (0/1/2) for all p SNPs across all n individuals. No default value. |
Phenotype |
A vector containing phenotypic values for all individuals being analyzed. No default value. |
Pathways |
A r x 2 matrix containing the pathway names and then
a comma-separated list of the |
Covariates |
A n x q matrix containing any q additional covariates that should be included in the M-projection matrix of the model. See Turchin et al. 2020 for details. Note that these are covariates which are applied to both sides of the model, ie the phenotype as well as the genotypes. A y-intercept term is automatically included and does not need to be part of this n x q matrix. No default value. |
CenterStandardize |
A logical |
OpenMP |
A logical |
cores |
A numeric value providing the expected number of cores
if the OpenMP version of the code is being used.
|
... |
Additional optional arguments. |
Value
A list containing two entries. First, a dataframe (Results
)
containing in the first column the list of pathways that were analyzed,
in the second column the associated MAPITR
p-values for each
pathway, in the third column the associated MAPITR
variance
component estimates for each pathway, and in the fourth column the
associated MAPITR
PVEs for each pathway. Second, a matrix
(Eigenvalues
) containing the n associated MAPITR
eigenvalues for each pathway per column.
Examples
data(MAPITR_TestData_Genotypes, MAPITR_TestData_Phenotype,
MAPITR_TestData_Pathways)
MAPITROutput <- MAPITR(MAPITR_TestData_Genotypes, MAPITR_TestData_Phenotype,
MAPITR_TestData_Pathways, OpenMP=FALSE)
MAPITROutput$Results
MAPITR SimData Genotypes
Description
A simulated dataset of genotypes for use in vignettes
Format
A data frame with 500 rows (individuals) and 750 variables (SNPs)
Source
Manually created
MAPITR SimData PCs
Description
Top 10 principal components from the simulated genotypes for for use in vignettes
Format
A data frame with 500 rows (individuals) and 10 variables (PCs)
Source
Manually created
MAPITR SimData Pathways
Description
A simulated set of pathways for use in vignettes
Format
A data frame with 5 rows (pathways) and 2 variables (pathway name, comma-separated list of pathway column indices)
Source
Manually created
MAPITR SimData Phenotype
Description
A simulated set of phenotypes for use in vignettes
Format
A data frame with 500 rows (individuals) and 1 variables (phenotype)
Source
Manually created
MAPITR TestData Genotypes
Description
A simulated dataset of genotypes for use in unit tests
Format
A data frame with 500 rows (individuals) and 750 variables (SNPs)
Source
Manually created
MAPITR TestData PCs
Description
Top 10 principal components from the simulated genotypes for for use in unit tests
Format
A data frame with 500 rows (individuals) and 10 variables (PCs)
Source
Manually created
MAPITR TestData Pathways
Description
A simulated set of pathways for use in unit tests
Format
A data frame with 5 rows (pathways) and 2 variables (pathway name, comma-separated list of pathway column indices)
Source
Manually created
MAPITR TestData Phenotype
Description
A simulated set of phenotypes for use in unit tests
Format
A data frame with 500 rows (individuals) and 1 variables (phenotype)
Source
Manually created