Implementation of CMM in this paper:
Wang, Haohan, Fen Pei, Michael M. Vanyukov, Ivet Bahar, Wei Wu, and Eric P. Xing. "Coupled mixed model for joint genetic analysis of complex disorders with two independently collected data sets." BMC bioinformatics 22, no. 1 (2021): 1-14. (link)
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.
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.
- models/ main method for CMM
- utility/ other helper files
- cmm.py main entry point of using CMM to work with your own data
python cmm.py --file1 ./data/mice1.plink --file2 ./data/mice2.plink -m --snum 20
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
- CMM currently supports CSV and binary PLINK files.
- Extensions to other data format can be easily implemented through
FileReader
inutility/dataLoadear
. Feel free to contact us for the support of other data format.
Proficient python users can directly call the CMM method with python code, see example at Line 261 to Line 266
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