Coder Social home page Coder Social logo

epigen_rcodes's Introduction

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.

epigen_rcodes's People

Contributors

cramanuj avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

hmyh1202

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.