Coder Social home page Coder Social logo

em_haplotype's Introduction

Goal

  • Previously have conducted single marker associations with scleroderma
  • Want to test hypothesis that haplotypes may confer risk not attributable to additive effects of individual alleles
  • Focuse on determining haplotypes of 4 HLA class II alleles (drb1, dpb1, dqb1, d1a1) using EM algorithm

EM initialization

  • Given 4 loci, each loci has 2 alleles (locus1 has A,a, locus2 has B,b, locus3 has C,c, locus4 has D,d)
  • 739 individuals, N
  • Up to 16 possible haplotypes per individual, h = {ABCD, ABCd, ABcD, …, abcd}
  • 8 possible haplotype pairs per inidividual, { {ABCD,abcd}, {ABCd,abcD} … }
  • Initial haplotype probabilities, f = (PABCD, PABCd, PABcD, PABcd, … ,Pabcd)
    • Random f
    • Equally likely f

EM process

  • Each individual i, has at most 8 haplotype pairs, each pair consists of haplotype j, and haplotype k. Conditional probability of a haplotype pair is

P_{i}(haplotype_pair = j,k | genotype_{AaBbCcDd}) proportion to F_{h_j} * f_{h_k} * 2^(h_j!=h_k)

  • Then, the estimated frequency of a haplotype hj is the sum of its expected occurrences from all the individuals

em_haplotype's People

Contributors

kylec avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.