module Ms::Mass::AA

A module for working with commonly used residue masses in proteomics.

require 'ms/mass/aa'
include Ms::Mass::AA

MONO['A'] # => 71.0371137878
AVG['A']  # => 71.0779

# or use symbols
MONO[:A]  # => 71.0371137878

molecules is built on constants and constants on ruby-units and it seems impossible to get ruby-units 1.9 compatible. Until that point, values will remain hard coded and these values are free of dependencies.

The values are built using the excellent ‘molecules’ library. See that library for more serious work with masses.

Constants

AVG

Average amino acid masses keyed as symbols and also strings (all uppder case). Also includes Ms::Mass::AVG for things like protons (‘h+’)

AVG_STRING

amino_acids keys as strings, average masses

AVG_SYM

amino_acids keys as symbols, average masses

MONO

Monoisotopic amino acid masses keyed as symbols and also strings (all upper case). Also includes Ms::Mass::MONO for things like protons (‘h+’)

MONO_STRING

amino_acids keys as strings, monoisotopic masses

MONO_SYM

amino_acids keys as symbols, monoisotopic masses