-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
82 lines (61 loc) · 2.69 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# gnonadd
<!-- badges: start -->
[![CRAN](https://www.r-pkg.org/badges/version/gnonadd)](https://cran.r-project.org/package=gnonadd)
[![Downloads](https://cranlogs.r-pkg.org/badges/gnonadd?color=brightgreen)](https://www.r-pkg.org/pkg/gnonadd)
![alt tag](https://cranlogs.r-pkg.org/badges/grand-total/gnonadd)
<!-- badges: end -->
`gnonadd` is a package accompanying the paper [Complex effects of sequence variants on lipid levels and coronary artery disease](https://doi.org/10.1016/j.cell.2023.08.012) published in Cell September 2023. The package is intended to properly document the conducted analysis and aid researchers in studying various non-additive models.
## What is in the package?
The goal of the `gnonadd` package is to simplify workflows with non-additive
analysis in genetic associations.
This includes e.g.
1) Variance effects
2) Correlation effects
3) Interaction effects
4) Dominance effects
## Included Functionality
The following is a non-comprehensive summary of the included functions:
- `alpha.calc` function to compute multiplicative variance effects
- `alpha.cond` function to do conditional analysis of variance effects
- `kappa_calc` function to compute correlation effects (gt/pheno/pheno)
- Correlation calibration
- `Var.assoc` Testing variance scores associations with data
- Dominance effect model implementation
- Interaction effect model (gt/gt/pheno) (genotype interaction) implementation
- Pairwise genotype interaction implementation for list of genotypes
- Interaction effect model (gt/pheno/pheno) (environment interaction) implementation
- Environment interaction cross of lists of phenotypes and genotypes (single outcome phenotype)
- Function to create traditional genetic score
- Function to create traditional genetic score with interaction effects as well
- Function to create traditional genetic score with interaction effects and dominance effects as well
- Function to create variance genetic score
- Summary visualizations
- Histograms by genotype
Please refer to the documentation for examples with simulated data.
## Installation
You can install the latest version of the package via the `remotes` package:
```{r, eval = FALSE}
# Use remotes:
remotes::install_github("DecodeGenetics/gnonadd")
```
The current version on CRAN can be installed with:
```{r, eval = FALSE}
install.packages("gnonadd")
```
## Citing this package
For citing this package, please use the following source:
```{r, eval = TRUE}
citation("gnonadd")
```