LYRUS incorporates five sequence-based, six structure-based, and four dynamics-based features. Uniquely, LYRUS includes a newly-proposed sequence co-evolution feature called variation number. LYRUS was trained using a dataset that contains 4,363 protein structures corresponding to 22,639 SAVs from the ClinVar database.
The method is described in Jiaying Lai, Jordan Yang, Ece D Gamsiz Uzun, Brenda M Rubenstein, Indra Neil Sarkar, LYRUS: a machine learning model for predicting the pathogenicity of missense variants, Bioinformatics Advances, Volume 2, Issue 1, 2022, vbab045, https://doi.org/10.1093/bioadv/vbab045.
LYRUS is built on top of several existing Python libraries as well as other Software, and is tested using Python3.7.4
Python packages (most of which can be installed using pip) needed to run LYRUS include:
- skbio: http://scikit-bio.org
- pandas: https://pandas.pydata.org/docs/getting_started/install.html
- numpy: https://numpy.org/install/
- scipy: https://www.scipy.org/install.html
- xgboost: https://xgboost.readthedocs.io/en/latest/install.html
- sklearn: https://scikit-learn.org/stable/install.html
- Bio: https://biopython.org/wiki/Download
- BeautifulSoup: https://www.crummy.com/software/BeautifulSoup/bs4/doc/#installing-beautiful-soup
- evcouplings: http://prody.csb.pitt.edu/downloads/
- prody: http://prody.csb.pitt.edu/downloads/
- rhapsody: http://rhapsody.csb.pitt.edu/download.php
- pyrosetta: https://www.pyrosetta.org/downloads/legacy-pyrosetta3-download
LYRUS also depends on the following external packages:
Install command line version for:
- Clustal Omega: http://www.clustal.org/omega/
- PAUP: http://phylosolutions.com/paup-test/
Install the following files and put it in the LYRUS directory:
- plmc-master: https://github.com/debbiemarkslab/plmc
- FoldX: http://foldxsuite.crg.eu
- FreeSASA: https://freesasa.github.io
- MAESTRO: https://pbwww.services.came.sbg.ac.at/?page_id=477
- P2Rank: https://github.com/rdk/p2rank
Clone this repository and run the following command within the downloaded directory, with python version 3.7.4 or higher.
import os
from LYRUS.lyrusClass import lyrusClass, lyrusPredict
gene = 'A1BG'
uniprot = 'P04217'
currDir = os.getcwd()
outputDir = '{}/test'.format(currDir)
try:
os.mkdir(outputDir)
except:
print('Output directory already exist')
#load model
lyrusModel = lyrusClass(gene, uniprot, outputDir, savFile=None)
#download orthologs from NCBI
lyrusModel.getFasta()
#download PDB from SWISS-MODEL
lyrusModel.getPDB()
#calculate all the parameters except for fathmm
lyrusModel.getParameters(maestroDir='MAESTRO_OSX_x64',p2rankDir='p2rank_2.2')
The fathmmFile should contain the output from FATHMM. To get the FATHMM output, go to http://fathmm.biocompute.org.uk/inherited.html and run using the fathmmInput.txt available in the output directory.
fathmmFile = 'test/fathmm.txt'
#calculate lyrus probability
lyrusPredict(gene, fathmmFile, outputDir, uniprot)
$ python lyrus.py -i <inputFile> -o <outputDir> -f <fathmmFile>
The inputFile should contain 2 column:
- UniProt ID
- Single amino acid variant: [aa_ref][aa_pos][aa_var]
Example inputFile:
Q9NQZ7 V363G
P11245 E203D
Q6XZF7 R1101Q
B1AL17 A139V
Q9NTN9-2 R423H
Q92887 T486I
............
The outputDir should be a full path to the desired directory to store the outputs
The fathmmFile should contain the output from FATHMM. To get the FATHMM output, go to http://fathmm.biocompute.org.uk/inherited.html and run using the inputFile.
The data folder that includes pre-computed variation number and EVMutation score (using the same orthologs as the variation number; differs from the ones provided by the Marks Lab https://marks.hms.harvard.edu/evmutation/downloads.html) can be downloaded at https://drive.google.com/drive/folders/1bFMi78D4LqjGMDZiP_X6OzBBcsttSoSy?usp=sharing. If you decided to use the pre-computed scores, please put the data folder in the LYRUS directory.
- LYRUS_input.csv contains the calculated feature values, which include nan
- LYRUS_imputed.csv contains the imputed feature values
- LYRUS_prediction.csv contains prediction results