Git Product home page Git Product logo

geneclassificationmrf's Introduction

GeneClassificationMRF

Discovery of species specific genes given gene expression data from multiple brain regions and species

We provide an implementation of the simulated field algorithm presented in Celeux et al. 2003, used to solve a Markov random field. In our implementation, we take as input a list of prior probabilities associated with multiple brain regions and 3 species. The 3 species result in k = 5 classes:

  1. Nonspecific (same expression in all species)
  2. Macaque specific
  3. Human specific
  4. Chimp specific
  5. Differentially expressed in all species

Priors can be defined in any way the user wishes, as long as the the input format is correct. The priors, denoted pp, must be a named list of matrices, where each matrix is the priors for a single brain region. Thus, for k = 5 classes, each matrix must have 5 columns and rows equal to teh number of genes.

A toy example of priors can be found in ex.priors.rda. The code includes a working example for how to estimate the MRF parameters, obtain posterior probabilities for class membership, and the posterior best classifications.

That code is:

run.example <- function() {

load("ex.priors.rda")

# solve for MRF parameters
res <- solveMRF(ex.priors)

# get posterior probabilities of class membership
ex.post <- posterior(res$a, res$b, ex.priors)

# get the posterior best classifications
postb <- best.mod.list(ex.post)

return(list(res = res, pp = ex.priors, postp = ex.post, postb = postb))

}

geneclassificationmrf's People

Contributors

ldiao avatar

Watchers

 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.