GithubHelp home page GithubHelp logo

cmm's Introduction

CMM

CMM (Coupled Mixed Model)

Implementation of CMM in this paper:

Wang H., Pei F., Vanyukov MM., Bahar I., Wu W. and Xing EP, Coupled Mixed Model for Joint Genetic Analysis of Complex Disorders with Two Independently Collected Data Sets (under review) (preprint)

Introduction

CMM (Coupled Mixed Model) is used to simulnateously conduct genetic analysis for independently collected data sets of different related phenotypes. CMM aims to achieve this goal by inferring all the information enclosed by dashed lines in the following figure.

Introduction

Replication: This repository serves for the purpose to guide others to use our tool, if you are interested in the scripts to replicate our results, please contact us and we will share the repository for replication. Contact information is at the bottom of this page.

File Structure:

  • models/ main method for CMM
  • utility/ other helper files
  • cmm.py main entry point of using CMM to work with your own data

An Example Command:

python cmm.py --file1 ./data/mice1.plink --file2 ./data/mice2.plink -m --snum 20

Instructions

  Options:
  -h, --help          show this help message and exit

  Data Options:
    --file1 INPUT FILE ONE       name of the first input file
    --file2 INPUT FILE TWO       name of the second input file

  Model Options:
    --lambda=LMBD     the weight of the penalizer. If neither lambda or snum
                      is given, cross validation will be run.
    --snum=SNUM       the number of targeted variables the model selects. If
                      neither lambda or snum is given, cross validation will
                      be run.
    -s                Stability selection
    -q                Run in quiet mode
    -m                Run without missing genotype imputation

Data Support

  • CMM currently supports CSV and binary PLINK files.
  • Extensions to other data format can be easily implemented through FileReader in utility/dataLoadear. Feel free to contact us for the support of other data format.

Python Users

Proficient python users can directly call the CMM method with python code, see example at Line 261 to Line 266

Installation (Not Required)

You will need to have numpy, scipy and pysnptool installed on your current system. You can install CMM using pip by doing the following

   pip install git+https://github.com/HaohanWang/CMM

You can also clone the repository and do a manual install.

   git clone https://github.com/HaohanWang/CMM
   python setup.py install

Contact

Haohan Wang · @HaohanWang

cmm's People

Contributors

haohanwang avatar

Watchers

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