MS/MS spectrum prediction for cross-linked peptide pairs by deep learning
Project description
pDeepXL: MS/MS spectrum prediction for cross-linked peptide pairs by deep learning
Introduction
In cross-linking mass spectrometry, identification of cross-linked peptide pairs heavily relies on similarity measurements between experimental spectra and theoretical ones. The lack of accurate ion intensities in theoretical spectra impairs the performances of search engines for cross-linked peptide pairs, especially at proteome scales. Here, we introduce pDeepXL, a deep neural network to predict MS/MS spectra of cross-linked peptide pairs. We used the transfer learning technique to train pDeepXL, facilitating the training with limited benchmark data of cross-linked peptide pairs. Test results on over ten datasets showed that pDeepXL accurately predicted spectra of both non-cleavable DSS/BS3/Leiker cross-linked peptide pairs (>80% of predicted spectra have Pearson correlation coefficients (PCCs) higher than 0.9), and cleavable DSSO/DSBU cross-linked peptide pairs (>75% of predicted spectra have PCCs higher than 0.9). Furthermore, we showed that accurate prediction was achieved for unseen datasets using an online fine-tunning technique. Finally, integrating pDeepXL into a database search engine increased the number of identified cross-linked spectra by 18% on average.
Download
Please download pDeepXL from https://github.com/pFindStudio/pDeepXL/raw/master/pDeepXL.zip, which contains the source code and test datasets.
Dependencies
- Python >=3.6.9
- PyTorch >= 1.0.1
- tqdm >= 4.45.0
- seaborn >= 0.9.0
- sklearn >= 0.21.2
Anaconda enviroment is recommended.
Predict
There are two test datasets in the downloaded pDeepXL.zip, one is for non-cleavable cross-linkers DSS/Leiker (pDeepXL/datasets/non_cleavable), and the other is for cleavable cross-linkers DSSO/DSBU (pDeepXL/datasets/cleavable). For each dataset, there are 3 folders: the data folder contains 1 file with 15 cross-linked peptide pairs, the model folder contains 1 file with the trained model, and the predict_results folder contains predicted MS/MS spectra and the corresponding images.
You can predict MS/MS spectra for cross-linked peptide pairs with following steps.
-
Activate your PyTorch environment and goto the
pDeepXL/modelfolder -
Run
linear_predict.pywith following parameters to predict:python linear_predict.py path_data_file path_predict_result_file path_model is_non_cleavablewhere:
path_data_fileis the path of test data file. Please make sure one line for one cross-linked peptide pair, each line contains 14 columns, and thetitleshould be unique for each line. For details about the data format, please see the demo data filepath_predict_result_fileis the path of predicted result filepath_modelis the path of model fileis_non_cleavableis whether the test data is for non-cleavable cross-linkers.1is for non-cleavable cross-linkers and0is for cleavable cross-linkers
For example, run the following command for the demo non-cleavable cross-linked dataset (please use your local paths):
python linear_predict.py ../datasets/non_cleavable/data/non_clv_dataset.txt ../datasets/non_cleavable/predict_results/non_clv_predicted_res.txt ../datasets/non_cleavable/model/non_clv_model.pt 1or run the following command for the demo cleavable cross-linked dataset (please use your local paths):
python linear_predict.py ../datasets/cleavable/data/clv_dataset.txt ../datasets/cleavable/predict_results/clv_predicted_res.txt ../datasets/cleavable/model/clv_model.pt 0 -
After that, a predicted result file will be generated in the
path_predict_result_fileyou specified. In the result file, the last two columns (seq1_pred_b1b2y1y2,seq2_pred_b1b2y1y2) are the predicted intensity matrix for alpha peptide and beta peptide, respectively. For non-cleavable cross-linkers, only the first four rows of the intensity matrix are valid, and they areb+,b++,y+, andy++successively. For cleavable cross-linkers, all eight rows are valid, and they areb+,b++,y+,y++,bS+,bS++,yS+, andyS++successively. For more details, please see Supplementary Figure 2 of the manuscript. -
Goto the
pDeepXL/visualizefolder, and runplot_csm.pywith following parameters to generate images of predicted MS/MS spectra according to the predicted results:python plot_csm.py path_predict_result_file path_img_folderwhere:
path_predict_result_fileis the path of predicted result file generated in step 1path_img_folderis the path of the folder where you want to place images for predicted MS/MS spectra. If the folder does not exist, we will make the folder for you
For example, run the following command for the demo non-cleavable cross-linked dataset (please use your local paths):
python plot_csm.py ../datasets/non_cleavable/predict_results/non_clv_predicted_res.txt ../datasets/non_cleavable/predict_results/imgsor run the following command for the demo cleavable cross-linked dataset (please use your local paths):
python plot_csm.py ../datasets/cleavable/predict_results/clv_predicted_res.txt ../datasets/cleavable/predict_results/imgs -
After that, images of predicted spectra for all cross-linked peptide pairs will be generated in the
path_img_folderyou specified. The name of each image is thetitleof each line inpath_data_file. Here are two examples, one for DSS and the other for DSSO.
Citation
pDeepXL: MS/MS spectrum prediction for cross-linked peptide pairs by deep learning, under review.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pDeepXL-1.0.0.tar.gz.
File metadata
- Download URL: pDeepXL-1.0.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d2376eaca8b023e20543c2e773db089323b4a7925a9ad68287d0f1cf2fc5281
|
|
| MD5 |
879d7c24eb666460bc9bc658e1e39af7
|
|
| BLAKE2b-256 |
b4045c1a78f283cba2cb1dc72022f972d3954403d1e10b73fe2941cfbb612a50
|
File details
Details for the file pDeepXL-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pDeepXL-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1cbb8936f1bfeccd8f06881d73045f6f159aac829267fe08b79bb79c92f00622
|
|
| MD5 |
881c3152c0256940ec233df52f95821f
|
|
| BLAKE2b-256 |
29d7e8295a8468bf43d84876fd5140c3fea0bb05aecd4171f17a497d9486d3d7
|