Coder Social home page Coder Social logo

varianttogene's Introduction

VariantToGene

Genomic predictors and Annotation predictors

Genomic predictors | variant to gene | 变异的基因注释

本仓库为以上教程的代码实现

general input: a dataframe, rowname is SNP rsid, rsid column is rsid

general output: add annotation to the columns one by one, like nGene, eGene and cGene

prepare curated database

  • this is the most important part
  • the functions are very simple

Genomic predictors

  • get_nGene(), Nearby (nGene)
  • get_eGene(), eQTL (eGene)
  • get_cGene(), Conformation (cGene)

Annotation predictors

  • get_fGene(), Function (fGene)
  • get_pGene(), Phenotype (pGene)
  • get_dGene(), Disease (dGene)

Other functions

  • extend_LD(), get all high LD (R2>0.8) SNPs

get_nGene

input:

  • rsid df, a dataframe, rowname is SNP rsid, rsid column is rsid

data preparation:

function pipeline:

  • simplify columns
  • rename categories from VEP
  • remove duplicate according to priority

output:

  • unique function annotation of each SNP - a dataframe
  • nGene_type: Splicing
  • nGene: MYSM1
  • nGene_biotype: protein_coding

get_eGene

input:

  • rsid df, a dataframe, rowname is SNP rsid, rsid column is rsid

data preparation:

function pipeline:

  • simply match rsid to multiple genes

output:

  • eGene: geneA,geneB

get_cGene

input:

  • rsid df, a dataframe, rowname is SNP rsid, rsid column is rsid

extend_LD

input:

  • rsid, example: unique(asso.df$SNPS)

function pipeline:

  • library("LDlinkR")
  • LDproxy()

output:

  • all high LD SNPs - a dataframe

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.