pgb_liv\php_ms\Core\AminoAcidComposition
Get molecular formula for common amino acids.
- Author: Andrew Collins
Synopsis
- // constants
- const A = 'C3H7NO2';
- const C = 'C3H7NO2S';
- const D = 'C4H7NO4';
- const E = 'C5H9NO4';
- const F = 'C9H11NO2';
- const G = 'C2H5NO2';
- const H = 'C6H9N3O2';
- const I = 'C6H13NO2';
- const K = 'C6H14N2O2';
- const L = 'C6H13NO2';
- const M = 'C5H11NO2S';
- const N = 'C4H8N2O3';
- const P = 'C5H9NO2';
- const Q = 'C5H10N2O3';
- const R = 'C6H14N4O2';
- const S = 'C3H7NO3';
- const T = 'C4H9NO3';
- const U = 'C3H7NO2Se';
- const V = 'C5H11NO2';
- const W = 'C11H12N2O2';
- const Y = 'C9H11NO3';
- // methods
- public static string getFormula()
- public static string getFormulaInsensitive()
Coverage
Methods | 100% | 2 / 2 |
Lines | 100% | 8 / 8 |
Constants
Name | Value |
---|---|
A | 'C3H7NO2' |
C | 'C3H7NO2S' |
D | 'C4H7NO4' |
E | 'C5H9NO4' |
F | 'C9H11NO2' |
G | 'C2H5NO2' |
H | 'C6H9N3O2' |
I | 'C6H13NO2' |
K | 'C6H14N2O2' |
L | 'C6H13NO2' |
M | 'C5H11NO2S' |
N | 'C4H8N2O3' |
P | 'C5H9NO2' |
Q | 'C5H10N2O3' |
R | 'C6H14N4O2' |
S | 'C3H7NO3' |
T | 'C4H9NO3' |
U | 'C3H7NO2Se' |
V | 'C5H11NO2' |
W | 'C11H12N2O2' |
Y | 'C9H11NO3' |
Methods
public
- getFormula() — Gets the molecular formula for the provided amino acid.
- getFormulaInsensitive() — Gets the molecular formula for the provided amino acid.
History
-
2018-07-06T12:02:52+01:00 (commit #a9e1539)
Author: detritus (detritus@blueyonder.co.uk) / Commiter: detritus (detritus@blueyonder.co.uk)
Updated U to use formula including H2O
-
2018-07-06T11:22:28+01:00 (commit #b130554)
Author: detritus (detritus@blueyonder.co.uk) / Commiter: detritus (detritus@blueyonder.co.uk)
Added "U" to composition reference table Added support for Selenium in peptide composition
-
2017-10-25T11:32:31+01:00 (commit #ccae3f8)
Author: detritus (detritus@blueyonder.co.uk) / Commiter: detritus (detritus@blueyonder.co.uk)
Fixed various documentation and import issues
-
2017-10-24T16:05:10+01:00 (commit #b2240f0)
Author: detritus (detritus@blueyonder.co.uk) / Commiter: detritus (detritus@blueyonder.co.uk)
Tweaked PHPMD rules
-
2017-06-28T19:12:00+01:00 (commit #2821029)
Author: Andrew Collins (detritus@blueyonder.co.uk) / Commiter: Andrew Collins (detritus@blueyonder.co.uk)
Added support for generating molecular formulas of amino acids and peptides
-
2017-02-08T15:18:50+00:00 (commit #1dca06f)
Author: detritus (detritus@blueyonder.co.uk) / Commiter: detritus (detritus@blueyonder.co.uk)
* Fixed crash in AminoAcidMono::getMonoisotopicMassInsensitive * Fixed crash in DigestFactory::getDigest()
-
2017-01-12T18:57:43+00:00 (commit #2e6fa19)
Author: Andrew Collins (detritus@blueyonder.co.uk) / Commiter: Andrew Collins (detritus@blueyonder.co.uk)
Cleaned up Amino Acid Mono + test
-
2017-01-12T13:47:26+00:00 (commit #87a6e03)
Author: Andrew Collins (detritus@blueyonder.co.uk) / Commiter: Andrew Collins (detritus@blueyonder.co.uk)
Added input validation and testing to AminoAcidMono
-
2017-01-11T17:12:38+00:00 (commit #9a75fa9)
Author: detritus (detritus@blueyonder.co.uk) / Commiter: detritus (detritus@blueyonder.co.uk)
no message
-
2017-01-11T17:12:26+00:00 (commit #9b7e47a)
Author: detritus (detritus@blueyonder.co.uk) / Commiter: detritus (detritus@blueyonder.co.uk)
Added amino acid monoisotopic mass look up