Skip to main content

Protein chemical shift prediction based on Protein Language Model

Project description

PLM-CS

Predict protein chemical shifts from sequence

image

Train your model

If you want to train your own PLM-CS model, this repository provides all the tools and data. Just follow these steps.

Requirement

'torch == 2.5.0',
'torchaudio == 2.5.0',
'torchvision == 0.20.0',
'fair-esm == 2.0.0',
'numpy == 2.1.2',
'biopython == 1.84',
'pandas == 2.2.3'

Training set

We provide the complete training set data in RefDB training dataset. Each file in this folder is in nmrstar format, and each file corresponds to a protein. All proteins contained in the SHIFTX test are removed from it.

Training set processing

For convenience, the reasoning process of the ESM model is separate from the training process of our regression model. Therefore, we first use ESM-650M to process the data. Change the "save_path" in esm_process.py to your own path. A tensordataset containing the training data will be generated.

Train

Modify the path in the train.py to your own parh. Also, be aware that this can only train a model of one type of atom at a time.

Training parameters

Different atom types correspond to different optimizer strategies.You can modify the corresponding parameters in the train.py according to your trained model. The default number of steps for an iteration is 20,000, but you can change it to 5,000 to achieve very close performance while reducing training time

parameters C H N
learning rate 0.02 5e-4 0.002 0.01 5e-4 5e-4
optimizer SGD Adam Adam SGD Adam Adam

Evaluate

Use PLM-CS through python SDK

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

plm-cs-1.5.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

plm_cs-1.5-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file plm-cs-1.5.tar.gz.

File metadata

  • Download URL: plm-cs-1.5.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.14

File hashes

Hashes for plm-cs-1.5.tar.gz
Algorithm Hash digest
SHA256 e080bb8403b1fbf5baf495737439e924aaafcd8996435efa3031dfa17ea42a3d
MD5 13a638e0bccb0f23cc6456cc55aba9ae
BLAKE2b-256 32cc5871df5eab2c0b2a71704ac715af0714e13158b3897c32563797d2925fb5

See more details on using hashes here.

File details

Details for the file plm_cs-1.5-py3-none-any.whl.

File metadata

  • Download URL: plm_cs-1.5-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.14

File hashes

Hashes for plm_cs-1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0abb585b01f4e80b16dbf2f1e4c8162d76db7dd7f6206e00f35bbc12bc36035d
MD5 ac1d4c79e727202cb1a685823241d70f
BLAKE2b-256 53d7ba9162228719f0e71713f2e91aa1308cc14c7557372dacfa2bca213c8ef7

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