peptide-mass
A small, no-dependency Python calculator for the theoretical masses of linear peptides built from the 20 standard amino acids. It gives monoisotopic and average masses plus the [M+H]⁺ … [M+5H]⁵⁺ m/z values you'd expect in electrospray, so you can check the identity (LC-MS) line of a certificate of analysis without doing the arithmetic by hand.
It's the packaged form of the calculator in peptide-reference-data (dataset DOI 10.5281/zenodo.23284819), maintained by Peptide.Express.
Install
pip install peptide-mass
Use
peptide-mass GEPPPGKPADDAGLV
# monoisotopic 1418.7042 Da | average 1419.54 Da
# [M+1H]1+ m/z 1419.7114 ...
peptide-mass CYIQNCPLG --c-amide --disulfides 1 # oxytocin
peptide-mass --csv peptides.csv # writes masses.csv
Options: --n-acetyl, --c-amide, --pyroglu (N-terminal Q or E), --disulfides N.
from peptide_mass import mass, mz
mono, avg = mass("CYIQNCPLG", c_amide=True, disulfides=1)
print(round(mz(mono, 2), 4))
Scope and limits
- Standard residues only. Non-standard residues and lipidated peptides aren't approximated.
- Values are for the neutral free peptide, not a TFA or acetate salt. Counter-ions and water change the weighed mass, not the MS parent mass.
- Average masses use IUPAC standard atomic weights; expect ±0.01–0.05 Da differences from other calculators.
License
MIT. For laboratory research use only. Not for human or veterinary use. Nothing in this package is dosing, clinical or medical information.
Metadata
Release files for peptide-mass 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| peptide_mass-0.1.1.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| peptide_mass-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.3 kB
Release files / peptide_mass-0.1.1.tar.gz
| Download URL | peptide_mass-0.1.1.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2641617255f3cb8544eb1c701d66ea426c93b1cf7f34cb53c40daf7c66f993c
|
|
BLAKE2b-256 checksum How to use checksums |
480e7f01f044bba314fe9293f6b998a84c69c4d350bae5bc038d6dde0aec13df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / peptide_mass-0.1.1-py3-none-any.whl
| Download URL | peptide_mass-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
547695716a0e915b365184ea9fb0c34cecd600218ec7384c4ec508c7b6ced404
|
|
BLAKE2b-256 checksum How to use checksums |
897d3c6a2721e609a48b19b83d6bedae47555367372dfec7c543914c2170d863
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|