protein_digest
In-silico protease digestion of one protein sequence (trypsin with the proline rule, trypsin without it, Lys-C, chymotrypsin, Glu-C, CNBr, or a custom rule) with up to 5 missed cleavages: every peptide with its positions, formula, monoisotopic and average mass and m/z at charges 1 to 3, the mass balance of the complete digest, and sequence coverage by peptides in a mass window. Masses come from element counts and IUPAC element masses, never from a residue mass table.
- Field
- Mass spectrometry
- Version
- 0.1.0
- Runs as
- Compiled (Rust)
- Typical run
- 0.05 s
Compiled from source: run sh packs/install.sh once before admitting it.
Known answers it must pass
r0001hand count, trypsin with the proline rule: MAKRPGLKFRPSKKEDRAWK cuts to MAK|RPGLK|FRPSK|K|EDR|AWK (R-P and R-P bonds kept); 2 missed cleavages give 6+5+4 = 15 peptides; masses are hand formulas x IUPAC element masses (closed form, rel 1e-9); pieces sum to protein + 5 H2Opassed
cleavage_sites= 55lockedexact matchn_pieces= 66lockedexact matchn_peptides= 1515lockedexact matchlimit_peptides= ["MAK", "RPGLK", "FRPSK", "K", "EDR", "AWK"]["MAK", "RPGLK", "FRPSK", "K", "EDR", "AWK"]lockedexact matchprotein_formula= C109H181N35O26SC109H181N35O26Slockedexact matchprotein_mono_mass_Da2428.36 ± 2.4e-062428.36lockedunder 0.01 % of the tolerance usedsum_limit_mono_mass_Da2518.42 ± 2.5e-062518.42lockedunder 0.01 % of the tolerance usedmass_balance_residual_Da0 ± 1e-080lockedunder 0.01 % of the tolerance usedpeptides.2.sequence= MAKRPGLKFRPSKmisseddifferspeptides.2.missed_cleavages= 2misseddifferspeptides.2.mono_mass_Da{"value": 1514.88677236855, "rel_tol": 1e-09}peptides.2.mz2{"value": 758.450662650896, "rel_tol": 1e-09}r0002angiotensin II DRVYIHPF intact (protease none): published formula C50H71N13O12; M = 1045.534515 Da from IUPAC element masses (closed form, rel 1e-9); [M+H]+ = 1046.5418, the textbook MS calibrant value (abs 1e-4, 4 decimals); m/z at z = 2, 3 from (M + z m_p)/z with CODATA m_p; average mass from standard atomic weightspassed
protein_formula= C50H71N13O12C50H71N13O12lockedexact matchn_pieces= 11lockedexact matchprotein_mono_mass_Da1045.53 ± 1e-061045.53lockedunder 0.01 % of the tolerance usedprotein_avg_mass_Da1046.18 ± 1e-061046.18lockedunder 0.01 % of the tolerance usedpeptides.0.mz1{"value": 1046.5418, "abs_tol": 0.0001}peptides.0.mz2{"value": 523.774533857001, "rel_tol": 1e-09}peptides.0.mz3{"value": 349.518781393541, "rel_tol": 1e-09}r0003peptide count n + (n-1) + ... + (n-m): Lys-C on (GK)x10 gives n = 10 pieces, m = 3 gives 10+9+8+7 = 34; GK = Gly + Lys - H2O = C8H17N3O3 and GKGK by hand formula x IUPAC element masses (closed form, rel 1e-9)passed
cleavage_sites= 99lockedexact matchn_pieces= 1010lockedexact matchn_peptides= 3434lockedexact matchpeptides.0.formula= C8H17N3O3misseddifferspeptides.0.mono_mass_Da{"value": 203.12699141991, "rel_tol": 1e-09}peptides.1.mono_mass_Da{"value": 388.24341815579, "rel_tol": 1e-09}peptides.3.sequence= GKGKGKGKmisseddiffersmass_balance_residual_Da0 ± 1e-080lockedunder 0.01 % of the tolerance usedr0004CNBr on GAMSLMK: cuts after each Met, which becomes homoserine lactone (- CH4S): GA-Hsl = C9H15N3O4, SL-Hsl = C13H23N3O5, K; pieces sum = M + 2 H2O - 2 CH4S (closed form, element masses, rel 1e-9)passed
n_pieces= 33lockedexact matchlimit_peptides= ["GAM", "SLM", "K"]["GAM", "SLM", "K"]lockedexact matchpeptides.0.formula= C9H15N3O4misseddifferspeptides.0.mono_mass_Da{"value": 229.10625597502, "rel_tol": 1e-09}peptides.1.formula= C13H23N3O5misseddifferspeptides.1.mono_mass_Da{"value": 301.16377085243, "rel_tol": 1e-09}protein_mono_mass_Da736.361 ± 7.4e-07736.361lockedunder 0.01 % of the tolerance usedsum_limit_mono_mass_Da676.376 ± 6.8e-07676.376lockedunder 0.01 % of the tolerance usedmass_balance_residual_Da0 ± 1e-08-1.13687e-13lockedunder 0.01 % of the tolerance usedr0005hand count, chymotrypsin (after F, Y, W, L, not before P) on AFPAYGWLE: AFPAY|GW|L|E (F-P kept), 4 pieces; GW mass by hand formula x element masses (rel 1e-9)passed
n_pieces= 44lockedexact matchlimit_peptides= ["AFPAY", "GW", "L", "E"]["AFPAY", "GW", "L", "E"]lockedexact matchpeptides.1.mono_mass_Da{"value": 261.11134135545, "rel_tol": 1e-09}r0006hand count, Glu-C in phosphate (after D, E, not before P) on AEPGEKDE: AEPGE|KD|E (E-P kept), 3 pieces; AEPGE by hand formula x element masses (rel 1e-9)passed
n_pieces= 33lockedexact matchlimit_peptides= ["AEPGE", "KD", "E"]["AEPGE", "KD", "E"]lockedexact matchpeptides.0.mono_mass_Da{"value": 501.20709221698, "rel_tol": 1e-09}r0007coverage by hand: of the tryptic pieces of MAKRPGLKFRPSKKEDRAWK only RPGLK (569.365 Da) and FRPSK (633.360 Da) lie in 500-700 Da, so 10 of 20 residues are covered = 50 % (exact count)passed
n_in_window= 22lockedexact matchcovered_residues= 1010lockedexact matchcoverage_pct50 ± 1e-1250lockedunder 0.01 % of the tolerance usedr0008carbamidomethyl Cys (iodoacetamide adds C2H3NO): ACK intact = C14H27N5O5S, mass by hand formula x IUPAC element masses (closed form, rel 1e-9)passed
protein_formula= C14H27N5O5SC14H27N5O5Slockedexact matchprotein_mono_mass_Da377.173 ± 3.8e-07377.173lockedunder 0.01 % of the tolerance used
Each line is one reading the kernel checked. The bright band is the tolerance; the needle is the value the instrument actually returned when it was admitted. A needle near the centre line used little of its tolerance.
Inputs
| Name | Unit | Default | Meaning |
|---|---|---|---|
sequence | Protein in one-letter code (20 standard letters, plus U and O), plain or one FASTA record; white space, digits and a final * are ignored. Up to 40000 residues. | ||
sequence_file | A staged FASTA or plain-text file with one protein, used when sequence is empty. | ||
protease | trypsin | trypsin: after K, R, not before P. trypsin_p: after K, R. lys_c: after K. chymotrypsin: after F, Y, W, L, not before P. chymotrypsin_high: after F, Y, W, not before P. glu_c: after E, not before P. glu_c_de: after D, E, not before P. cnbr: after M. none: the intact chain. custom: cut_after and not_before. | |
cut_after | protease = custom only: residues the cut follows, e.g. "KR". | ||
not_before | protease = custom only: residues that block the cut when they come next, e.g. "P". | ||
missed_cleavages | 1 | 0 | Most cleavage sites one peptide may span uncut. |
mass_min_Da | Da | 500 | Lower edge of the monoisotopic neutral mass window used for coverage. |
mass_max_Da | Da | 5000 | Upper edge of the mass window (greater than mass_min_Da). |
cys | free | Fixed Cys chemistry: free thiol, + C2H3NO (iodoacetamide) or + C2H2O2 (iodoacetic acid). | |
cnbr_product | homoserine_lactone | protease = cnbr: what each Met cut after becomes (lactone: - CH4S; homoserine: - CH4S + H2O). |
Readings
| Name | Unit | Meaning |
|---|---|---|
protein_length | 1 | |
protein_formula | 1 | |
protein_mono_mass_Da | Da | |
protein_avg_mass_Da | Da | |
cleavage_sites | 1 | |
n_pieces | 1 | |
n_peptides | 1 | |
longest_piece_length | 1 | |
sum_limit_mono_mass_Da | Da | |
sum_limit_avg_mass_Da | Da | |
water_mono_mass_Da | Da | |
mass_balance_residual_Da | Da | |
n_in_window | 1 | |
covered_residues | 1 | |
coverage_pct | % | |
peptides_listed | 1 | |
peptides | The first 200 peptides; out/peptides.csv holds all. m/z is in thomson (Da per elementary charge), written as plain numbers. | |
files | out/peptides.csv (every peptide: positions, formula, masses, m/z 1-3, in window), out/coverage.csv (per residue: peptides in the window covering it). |
Try the call
Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.