Title: | Tools for detecting genetic variants whose effect changes with age and associated bias |
---|---|
Description: | This package is a collection of tools to detect SNPs whose effect varies with age whose. owoeosds sd sd. sdsfw. sdfsers s es . |
Authors: | Jeremy Labrecque [aut, cre] |
Maintainer: | Jeremy Labrecque <[email protected]> |
License: | `use_mit_license()`, `use_gpl3_license()` or friends to pick a license |
Version: | 0.0.0.9000 |
Built: | 2024-09-05 04:08:00 UTC |
Source: | https://github.com/jalabrecque/MRchecks |
Takes output from SNPxAGE_model
and estimates the bias due to
age-varying genetic effects under different exposure windows and at two
different ages
SNPxAGE_bias(SNPxAGE_model_output, rep = 2, age_set = 65)
SNPxAGE_bias(SNPxAGE_model_output, rep = 2, age_set = 65)
SNPxAGE_model_output |
Output from |
rep |
Numerical value of the number of iterations to run the simulations |
A list of results
Function to estimate the per-allele effect at each age
SNPxAGE_effect(SNPxAGE_output, reps = 10, ages = 40:70)
SNPxAGE_effect(SNPxAGE_output, reps = 10, ages = 40:70)
Takes a genetic variant or single nucleotide polymorphism (SNP) and a phenotype it's associated with and estimates how the relationship between the two varies with age using splines.
SNPxAGE_model(data, SNP, phenotype, age, covars, k = 3, pred_ages, type = "cr")
SNPxAGE_model(data, SNP, phenotype, age, covars, k = 3, pred_ages, type = "cr")
data |
A data frame containing the SNP, age and phenotype variables |
SNP |
A character string with the name of the SNP variable in the data frame. This variable itself must be a factor variable containing at most 3 unique values indicating the number of copies |
phenotype |
A character string with the name of the phenotype variable in the data frame |
age |
A character string with the name of the age variable in the data frame |
covars |
A character vector with the names of the variables to be adjusted for (e.g. principal components) |
type |
A character string with the type splines to be used (see |
knots |
A numeric value indicating the number of internal knots (default 3) |
A list including the model and parameters used. If pred_ages is supplied then the predictions for those ages is also returned.
Jeremy A Labrecque, [email protected]
TBA
Function to plot absolute value of pheontype for each genotype
SNPxAGE_plot(SNPxAGE_model_output)
SNPxAGE_plot(SNPxAGE_model_output)