Skip to content

cramanuj/Epigen_Rcodes

Repository files navigation

R and C++ codes for all the analyses from the manuscript

C++ files######
  1. joint_test.cpp

This is the c++ file that describes our main algorithm. Also included are the functions to run the variance component score test (that tests Genotype x Methylation x Tissue interaction effect)

  1. jaguar.cpp

This is the c++ file that describes JAGUAR, which is available at https://cran.r-project.org/web/packages/JAGUAR/index.html

R files
  1. simulations_joint_test.R

This R script is necessary to run Monte Carlo simulations on our joint model.

  1. simulations_variance_comp_test.R

This R script runs Monte Carlo simulations comparing statistical power obtained from the variance component score test (for the Genotype x Methylation x Tissue interaction effect) with our joint model and for good measure, likelihoojd ratio test (RLRsim).

  1. simulations_JAGUAR_vs_JT.R

This R scripts runs Monte Carlo simulations comparing statistical power obtained from JAGUAR and our joint model both in the absence and presence of any effects due to methylation data.

  1. preprocess_gibbs.R

This R scripts preprocesses Gibbs et al adult human brain data from four brain regions, originally published at http://journals.plos.org/plosgenetics/article?id=10.1371/journal.pgen.1000952 This script essentially creates multiple sub-directories and deposits even partitions of gene expression and methylation data.

  1. run_joint_test.R

This R script runs our model on the Gibbs et al data fragments.

  1. run_separate_tbt.R

This R script runs a separate region-by-region analysis of gene expression and methylation data.

  1. run_TBT.R

This R script runs a region-by-region analysis using a linear model where methylation data is a covariate.

  1. run_vc_test.R

This R script runs a variance component score test to investigate any Genotype x Methylation x Tissue interaction effect in the Gibbs et al data.

  1. final_results.R

This script aggregates all the text files produced in each sub-directory after running all the above scripts and identifies statistically significant assocations.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published