Skip to main content

A model of alpha-helical stability based on statistical mechanics.

Project description

Alpha-helix probability model (AGADIR)

An open-source, Python implementation of Munoz & Serrano's AGADIR model of alpha-helix formation. This model uses statistical mechanics and energy parameters trained on a database of over 400 peptides to predict the alpha-helical tendency (probability) per residue for a given peptide (see references).

Install

This package has been uploaded to the Python Package Index (PyPI) and can be installed with:

pip install pyagadir

Usage

The most simple way to use this package is to import and invoke predict_alphahelix where helical_propensity is the probability that each residue is the alpha-helical conformation (list of floats) and result.percent_helix is the mean helical propensity (probability) for the full peptide (float):

from pyagadir import predict_alphahelix
result = predict_alphahelix('ILKSLEEFLKVTLRSTRQT')
print(result.helical_propensity)
print(result.percent_helix)

Advanced users may want to modify the partition function to an alternate approximation (e.g. residue, 'r') or inspect the detailed dG predicted values. The model class AGADIR can be directly imported and invoked. The result object is an instance of ModelResult (found in pyagadir.models) with more detailed free energy values saved during calculation (stored values are listed below).

from pyagadir.models import AGADIR

# create model object with an alternative partition function
# assumption, in this case, the multiple-sequence approximation
model = AGADIR(method='r')
result = model.predict('ILKSLEEFLKVTLRSTRQT')
print(result.percent_helix)
print(result.helical_propensity)

# Inspect the intrinsic helical propensities for each residue (dG_Int, kcal/mol)
print(result.self.int_array)

Stored Data in ModelResult

    > seq       :: peptide sequence (str)

    # for each residue/index position
    > int_array :: dG_Int   (np.array of shape(seq,1))
    > i1_array  :: dG_i,i+1 (np.array of shape(seq,1))
    > i3_array  :: dG_i,i+3 (np.array of shape(seq,1))
    > i4_array  :: dG_i,i+4 (np.array of shape(seq,1))
    > N_array   :: dG_Ncap  (np.array of shape(seq,1))
    > C_array   :: dG_Ccap  (np.array of shape(seq,1))

    > dG_dict_mat :: dG_dict's in list of lists where indexing corresponds to [j][i] (see Muñoz, V., & Serrano, L. (1994)); dG_dict includes each term used in computing dG_Helix for a given helical segment of length j at position i (Python indexing).

    # statistical weights and partition functions
    > K_tot       :: sum of statistical weights for AGADIR1s (one-sequence) (float)
    > K_tot_array :: array of summed statistical weights for AGADIR (residue) (np.array of shape(seq,1))
    > Z           :: residue parition function for AGADIR1s (one-sequence) (float)
    > Z_array     :: residue parition function for AGADIR (residue) (np.array of shape(seq,1))

    # final predicted values
    > helical_propensity :: probability that each residue is in the alpha-helical conformation (np.array of shape(seq,1))
    > percent_helix      :: mean helical propensity, or probability of peptide is an alpha-helix (float)

To Do

  • Implement multiple-sequence approximation (Munoz, V., & Serrano, L. (1997))
  • Cythonize the model
  • pytests

For developers

Build package with build (see https://github.com/pypa/build)

python -m build

Citations

Muñoz, V., & Serrano, L. (1994). Elucidating the folding problem of helical peptides using empirical parameters. Nature structural biology, 1(6), 399-409. https://doi.org/10.1038/nsb0694-399

Munoz, V., & Serrano, L. (1995). Elucidating the folding problem of helical peptides using empirical parameters. II†. Helix macrodipole effects and rational modification of the helical content of natural peptides. Journal of molecular biology, 245(3), 275-296. https://doi.org/10.1006/jmbi.1994.0023

Muñoz, V., & Serrano, L. (1995). Elucidating the Folding Problem of Helical Peptides using Empirical Parameters. III> Temperature and pH Dependence. Journal of molecular biology, 245(3), 297-308. https://doi.org/10.1006/jmbi.1994.0024

Lacroix, E., Viguera, A. R., & Serrano, L. (1998). Elucidating the folding problem of α-helices: local motifs, long-range electrostatics, ionic-strength dependence and prediction of NMR parameters. Journal of molecular biology, 284(1), 173-191. https://doi.org/10.1006/jmbi.1998.2145

Munoz, V., & Serrano, L. (1997). Development of the multiple sequence approximation within the AGADIR model of α‐helix formation: Comparison with Zimm‐Bragg and Lifson‐Roig formalisms. Biopolymers: Original Research on Biomolecules, 41(5), 495-509. https://doi.org/10.1002/(SICI)1097-0282(19970415)41:5<495::AID-BIP2>3.0.CO;2-H

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

pyagadir-0.1.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

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

pyagadir-0.1.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file pyagadir-0.1.0.tar.gz.

File metadata

  • Download URL: pyagadir-0.1.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for pyagadir-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cf5cd240eff1c02b122e41bef59e3b8a18a6ee90dd24baed7ccf252f42ea6429
MD5 c6889e152516ea60b8d6451e23b0aff1
BLAKE2b-256 10ca93587cde9084d4d2e34318860f3a02837bb1837fdd551a4e3ed290c1f526

See more details on using hashes here.

File details

Details for the file pyagadir-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyagadir-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for pyagadir-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 276ee4724dc4ea306dffbaa833df21bdc4c66ab53d0ac524722022ff9d667a13
MD5 684eca1733bc409cb9698a1879844499
BLAKE2b-256 477207bf1db4fc53046c26d0cf2b6403ff0ecf84ed901dada5719dc7131fcc18

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