Learn R Programming

gnonadd

gnonadd is a package accompanying the paper Complex effects of sequence variants on lipid levels and coronary artery disease 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:

# Use remotes:
remotes::install_github("DecodeGenetics/gnonadd")

The current version on CRAN can be installed with:

install.packages("gnonadd")

Citing this package

For citing this package, please use the following source:

citation("gnonadd")
#> To cite gnonadd in publications, please use
#> 
#>   Snaebjarnarson, Audunn S., et al. Complex effects of sequence
#>   variants on lipid levels and coronary artery disease. Cell 186.19
#>   (2023): 4085-4099.
#> 
#> A BibTeX entry for LaTeX users is
#> 
#>   @Article{,
#>     journal = {Cell},
#>     volume = {186},
#>     number = {19},
#>     pages = {4085--4099},
#>     year = {2023},
#>     author = {{Snaebjarnarson} and Audunn S and {Helgadottir} and {Anna} and {Arnadottir} and Gudny A and {Ivarsdottir} and Erna V and {Thorleifsson} and {Gudmar} and {Ferkingstad} and {Egil} and {Einarsson} and {Gudmundur} and {Sveinbjornsson} and {Gardar} and {Thorgeirsson} and Thorgeir E and {Ulfarsson} and Magnus O and others},
#>     title = {Complex effects of sequence variants on lipid levels and coronary artery disease},
#>     publisher = {Elsevier},
#>   }

Copy Link

Version

Install

install.packages('gnonadd')

Monthly Downloads

161

Version

1.0.3

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Audunn S. Snaebjarnarson

Last Published

December 19th, 2024

Functions in gnonadd (1.0.3)

env_interaction_CC.calc

Variant-Environmental interaction effects on a case control variable
env_interaction.calc

Variant-Environmental interaction effects
interaction_CC.calc

Variant-Variant interaction effects on a case control variable
ellipse.by.gen

Ellipse best fit plot
var.summary

Variance summary statistics
pairwise_int_CC.calc

Pairwise interaction effects for a case control variable
train_and_impute_PRS

Trains and imputes a poligenic risk score (PRS)
var.adj

Mean and variance effect adjustments.
pairwise_int.calc

Pairwise interaction effects
pairwise_env_int_CC.calc

Pairwise environmental interaction effects for a case control variable
hist_by_gen

Histogram by genotype
Var.assoc

Uncertanty association
dominance.calc

Genetic dominance effects
Viol.by.gen

Violin plot by genotype
corr.calibration

Calibration for the correlation test
VarGS.plot

Actual variance vs predicted variance plot
alpha.cond

Conditional analysis for genetic variance effects
alpha.multi.est

Variance parameters
alpha.continuous.cond

variance effect conditioned on continuous variables
PRS_creator

Creates poligenic risk scores
alpha.calc

Genetic variance effects
interaction.calc

Variant-Variant interaction effects
kappa_calc

Genetic correlation effects
pairwise_env_int.calc

Pairwise environmental interaction effects
expected.variance.effect

Expected variance effect from additive effect
dominance_CC.calc

Genetic dominance effects on a case control variable