Giter VIP home page Giter VIP logo

r2-d2-model's Introduction

R2-D2-model

R2-D2 model is a statistical method to identify the potential regulatory genetic variants to a gene. (add more description here once it is published).

Table of Contents


Requirements

R version >= 3.3.0

required R packages:

MASS
RcppEigen  
data.table

Prepare input files

Three types of input files are needed to run this model.

  1. Genotype file which describes the SNP genotypes for a group of individuals. It can be generated by PLINK.
  2. Phenotype file. This should be three-column text files, of which the first two columns are family ID (FID), and individual IDs (IID), and the third column
  3. Genotype-Phenotype association results. This is also a standard output from PLINK. It listed useful metrics of genotype-phenotype associations, such as P-value, R-squared, and direction of effect.

Run the R2-D2 main program

This is done by running the comTest_matrix() function in the protocol.R file

Paramters:

-- geno: the genotype file

-- qassoc: the genotype-phenotype association file

-- num: number of SNPs in a SNP combination to be exaustively tested

-- save_interm: whether or not to save the intermediate files, useful for checking model

comTest_matrix(geno = , qassoc = , num = 4, save_interm = T)

Generate the R2-D2 plots

This is done by running the familyPlot_matrix() function in the protocol.R file

Paramters:

-- plot_file: input file generated by the comTest_matrix()

-- title: title to be displayed in the plots, also used as output filename

-- color: colors for the SNPs chosen by the model.

familyPlot_matrix(plot_file = , title = , color = c("red", "green", "black")) 

Example

r2-d2-model's People

Contributors

saffenlab avatar

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.