Skip to main content

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.

  1. Activate your PyTorch environment and goto the pDeepXL/model folder

  2. Run linear_predict.py with following parameters to predict:

    python linear_predict.py path_data_file path_predict_result_file path_model is_non_cleavable
    

    where:

    • path_data_file is the path of test data file. Please make sure one line for one cross-linked peptide pair, each line contains 14 columns, and the title should be unique for each line. For details about the data format, please see the demo data file
    • path_predict_result_file is the path of predicted result file
    • path_model is the path of model file
    • is_non_cleavable is whether the test data is for non-cleavable cross-linkers. 1 is for non-cleavable cross-linkers and 0 is 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 1
    

    or 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
    
  3. After that, a predicted result file will be generated in the path_predict_result_file you 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 are b+, b++, y+, and y++ successively. For cleavable cross-linkers, all eight rows are valid, and they are b+, b++, y+, y++, bS+, bS++, yS+, and yS++successively. For more details, please see Supplementary Figure 2 of the manuscript.

  4. Goto the pDeepXL/visualize folder, and run plot_csm.py with 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_folder
    

    where:

    • path_predict_result_file is the path of predicted result file generated in step 1
    • path_img_folder is 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/imgs
    

    or 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
    
  5. After that, images of predicted spectra for all cross-linked peptide pairs will be generated in the path_img_folder you specified. The name of each image is the title of each line in path_data_file. Here are two examples, one for DSS and the other for DSSO.

    HEK293_DSS_FAIMS_405060_Fr1.36531.36531.4.0.dta.png

    HEK293_FAIMS_60_70_80_Fr2.32448.32448.3.0.dta.png

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

pDeepXL-1.1.0.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pDeepXL-1.1.0-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

Details for the file pDeepXL-1.1.0.tar.gz.

File metadata

  • Download URL: pDeepXL-1.1.0.tar.gz
  • Upload date:
  • Size: 21.7 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

Hashes for pDeepXL-1.1.0.tar.gz
Algorithm Hash digest
SHA256 fc7a38aadf715fa58b4ba15f695129a0000f47c0544261c00c7866bd79e21ae2
MD5 d9934604da85afc5bd987c9d6a13b749
BLAKE2b-256 ecc831c15b0e15bc50450b05710f406515ab6d631cedb30793b464aad3635345

See more details on using hashes here.

File details

Details for the file pDeepXL-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: pDeepXL-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 34.3 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

Hashes for pDeepXL-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f9034b140a5c1b693b91fb08b2ad756616dda1b960a595eb4725287c95d3919e
MD5 9457c7d98228d072f511d889c8a8f137
BLAKE2b-256 043025f57d5e253a588fa98fc4412537388443de2720bf43d8328ff5f44bc809

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page