Skip to main content

amphipathic

License Downloads Build Status Coverage Status PyPI version

This library can analyze an aminoacid sequence and gives a list of secondary structures with the respective hydrophobicity mean[1] and amphipathic index[1].

When it is useful to calculate this measurements on a secondary structure?

By looking into this measurements for an alpha helix, you can test some hiphotesis related with:

  1. the context of a globular soluble protein:
    • hydrofobic core, it will be no amphipathic and hydrophobic
    • interface between core and the superficial region, it will be amphiphatic
    • superficial region, it will be no amphipathic and hydrophilic
  2. the interactions of a trans-membrane protein:
    • on lipids interaction, it will be not amphipathic and hidrophobic
    • on multiple trans-membrane helix interacion (homomeric or heteromeric), it will be amphipathic building like an ionic channel.

Requirements

If you want to use this library on any GNU/Linux or OSX system you just need to execute:

$ pip install amphipathic

If you want to collaborate with this library, you should download the github repository and execute:

$ make deploy

Testing

To test all the project you should use the command:

$ pytest tests

Example

This library can analyze an aminoacid sequence and gives a list of secondary structures with the respective hydrophobicity mean and amphipathic index.

import amphipathic
resume = amphipathic.index('NLYIQWLKDGGPSSGRPPPS')
print resume

or specifing scale="prift" from Cornette et al.[1]

import amphipathic
resume = amphipathic.index('NLYIQWLKDGGPSSGRPPPS', scale="prift")
print resume

And the result should be:

[[
    {'end': 2,
     'begin': 0,
     'type': u'c',
     'seq': 'nl',
     'amphipathic': {'index': 7.572935321054872e-05, 'mean': 2.6}},
    {'end': 5,
     'begin': 2,
     'type': u'e',
     'seq': 'yiq',
     'amphipathic': {'index': 1.4312912272216411, 'mean': 1.7299999999999998}},
    {'end': 18,
     'begin': 5,
     'type': u'c',
     'seq': 'wlkdggpssgrpp',
     'amphipathic': {'index': 0.002511560979331271, 'mean': -0.43}},
    {'end': 20,
     'begin': 18,
     'type': u'e',
     'seq': 'ps',
     'amphipathic': {'index': 1.6242872515167746, 'mean': -1.34}}
]]

Each secondary structure block has specific information like:

  • type could be "c" (from coil), "e" (extended/beta sheet) or "h" (alpha helix).
  • mean provides the hydrophobicity mean obtained using the aminoacids of the block through Hydrophobicity scales obtained from Table 4 (STA PRIFT **) Cornette et al.[1].
  • index provides an amphipathic index adapted from Cornette et al.[1], first implemented into Pablo Daniel Ghiringhelli's PhD thesis[2]. Cornette et al.[1] suggests an scalar equal or greater than 2, means apmhipathicity. On alpha helix cases this is only valid for segments shorter than 20-25 residues. When an alpha helix go further in longitude, the index is not valid anymore.

It also accept a nucleotide sequence to perform the same analysis:

import amphipathic
resume = amphipathic.index('cgcgtccttggagcaatgcagttcaagaccaagaatcgaattgaacctgt')
print resume

And the output:

[[
    {'end': 12,
     'begin': 0,
     'type': u'c',
     'seq': 'rvlgamqfktkn',
     'amphipathic': {'index': 0.007560225956225585, 'mean': 0.7825000000000001}},
    {'end': 15,
     'begin': 12,
     'type': u'e',
     'seq': 'rie',
     'amphipathic': {'index': 1.6297837670649824, 'mean': 1.4599999999999997}},
    {'end': 16,
     'begin': 15,
     'type': u'c',
     'seq': 'p',
     'amphipathic': {'index': 0.0, 'mean': -2.23}}
]]

Last, it also accept a polyprotein sequence. When working with aminoacid it detect the '*' character as a stop signal:

import amphipathic
resume = amphipathic.index('NLYIQWLKDG*GPSSGRPPPS') 
print resume

Usages

This library was used into mistic2.

Bibliography

[1] Cornette, J. L., Cease, K. B., Margalit, H., Spouge, J. L., Berzofsky, J. A., & DeLisi, C. (1987). Hydrophobicity scales and computational techniques for detecting amphipathic structures in proteins. Journal of Molecular Biology, 195(3), 659–685. doi:10.1016/0022-2836(87)90189-6.

[2] Ghiringhelli D (2002). Virus Junín: Clonado molecular y análisis estructural y funcional del RNA S y sus productos génicos, Facultad de Ciencias Exactas, Universidad Nacional de La Plata.

Questions?

If you want to develope with us or have questions about this library, please file an issue in this repository so some of the project managers can get back to you. Please check the existing (and closed) issues to make sure your issue hasn't already been addressed.

Metadata

Release files for amphipathic 1.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for amphipathic 1.0.11
File Size Uploaded Provenance
amphipathic-1.0.11.tar.gz 19.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for amphipathic 1.0.11
File Interpreter ABI Platform
amphipathic-1.0.11-py3-none-any.whl Python 3 none any Details

Total release size: 33.1 kB

Release files / amphipathic-1.0.11.tar.gz

Download URL amphipathic-1.0.11.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fc1ef4e868690ba45e191e55ff7afabd70d95ce3c1d1e96bb25b3e415d8c87c3
BLAKE2b-256 checksum
How to use checksums
ad364652c6e01ba03c348529ea7c6082e76d19cbc130d5c02af89a94eed66a10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.7.0 requests/2.20.1 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

Release files / amphipathic-1.0.11-py3-none-any.whl

Download URL amphipathic-1.0.11-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae7bac6305d546a1d99bdfcea8e2e620e2649334aa1cdfa4ae9425d5f2e10d44
BLAKE2b-256 checksum
How to use checksums
0522a7fd1110f4601d53d7f5a18e22b87d01ae6fab020ec169c456218454d325
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.7.0 requests/2.20.1 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

Security for amphipathic 1.0.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page