Implementation of CS-LMM in this paper:
Wang, H., Vanyukov, M. M., Xing, E. P., & Wu, W. (2020). Discovering weaker genetic associations guided by known associations. BMC Medical Genomics, 13(3), 1-10.
CS-LMM is used to detect the weaker genetic association conditioned on the stronger validated associations.
- models/ main method for CS-LMM
- utility/ other helper files
- cslmm.py main entry point of using CS-LMM to work with your own data
python cslmm.py -n data/mice.plink
Options:
-h, --help show this help message and exit
Data Options:
-t FILETYPE choices of input file type
-n FILENAME name of the input file
-v FILEVALIDATED list of the validated markers
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
- CS-LMM 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 starting at Line 107
You will need to have numpy, scipy and pysnptool installed on your current system. You can install CS-LMM using pip by doing the following
pip install git+https://github.com/HaohanWang/CS-LMM
You can also clone the repository and do a manual install.
git clone https://github.com/HaohanWang/CS-LMM
python setup.py install