{"id":31055213,"url":"https://github.com/haohanwang/cmm","last_synced_at":"2025-09-15T04:40:29.886Z","repository":{"id":148619783,"uuid":"119440611","full_name":"HaohanWang/CMM","owner":"HaohanWang","description":"Coupled Mixed Model","archived":false,"fork":false,"pushed_at":"2021-10-07T01:43:30.000Z","size":8665,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-10-20T20:09:43.637Z","etag":null,"topics":["gwas","gwas-tools","joint-analysis","joint-models"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HaohanWang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-01-29T20:56:20.000Z","updated_at":"2023-10-20T20:09:44.437Z","dependencies_parsed_at":null,"dependency_job_id":"54aa415c-ab28-4480-bb79-6a8ba458aab1","html_url":"https://github.com/HaohanWang/CMM","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/HaohanWang/CMM","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaohanWang%2FCMM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaohanWang%2FCMM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaohanWang%2FCMM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaohanWang%2FCMM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HaohanWang","download_url":"https://codeload.github.com/HaohanWang/CMM/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaohanWang%2FCMM/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275207145,"owners_count":25423890,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gwas","gwas-tools","joint-analysis","joint-models"],"created_at":"2025-09-15T04:40:28.384Z","updated_at":"2025-09-15T04:40:29.877Z","avatar_url":"https://github.com/HaohanWang.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![CMM](cmm.PNG \"Coupled Mixed Model\")\n\n# CMM (Coupled Mixed Model)\n\nImplementation of CMM in this paper:\n\nWang, 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](https://bmcbioinformatics.biomedcentral.com/articles/10.1186/s12859-021-03959-2)_)\n\n## Introduction\n\nCMM (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. \n\n![Introduction](intro.PNG \"Introduction\")\n\n**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.\n\n## File Structure:\n\n* [models/](https://github.com/HaohanWang/CMM/tree/master/model) main method for CMM\n* [utility/](https://github.com/HaohanWang/CMM/tree/master/utility) other helper files\n* [cmm.py](https://github.com/HaohanWang/CMM/blob/master/cmm.py) main entry point of using CMM to work with your own data\n\n## An Example Command:\n\n```\npython cmm.py --file1 ./data/mice1.plink --file2 ./data/mice2.plink -m --snum 20\n```\n#### Instructions\n```\n  Options:\n  -h, --help          show this help message and exit\n\n  Data Options:\n    --file1 INPUT FILE ONE       name of the first input file\n    --file2 INPUT FILE TWO       name of the second input file\n\n  Model Options:\n    --lambda=LMBD     the weight of the penalizer. If neither lambda or snum\n                      is given, cross validation will be run.\n    --snum=SNUM       the number of targeted variables the model selects. If\n                      neither lambda or snum is given, cross validation will\n                      be run.\n    -s                Stability selection\n    -q                Run in quiet mode\n    -m                Run without missing genotype imputation\n```\n\n#### Data Support\n* CMM currently supports CSV and binary PLINK files.\n* 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.\n\n## Python Users\nProficient python users can directly call the CMM method with python code, see example at [Line 261 to Line 266](https://github.com/HaohanWang/CMM/blob/master/cmm.py#L261)\n\n## Installation (Not Required)\nYou will need to have numpy, scipy and pysnptool installed on your current system.\nYou can install CMM using pip by doing the following\n\n```\n   pip install git+https://github.com/HaohanWang/CMM\n```\n\nYou can also clone the repository and do a manual install.\n```\n   git clone https://github.com/HaohanWang/CMM\n   python setup.py install\n```\n\n## Contact\n[Haohan Wang](http://www.cs.cmu.edu/~haohanw/)\n\u0026middot;\n[@HaohanWang](https://twitter.com/HaohanWang)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaohanwang%2Fcmm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaohanwang%2Fcmm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaohanwang%2Fcmm/lists"}