module BELParser::Language::AminoAcid

AminoAcid defines a controlled vocabulary of twenty Amino Acids that are encoded by the universal genetic code. It does not contain the additional Amino Acids incorporated into proteins by synthetic means.

see en.wikipedia.org/wiki/Amino_acid

Constants

Alanine
Arginine
Asparagine
AsparticAcid
Cysteine
GlutamicAcid
Glutamine
Glycine
Histidine
Isoleucine
Leucine
Lysine
Methionine
Phenylalanine
Proline
Serine
Threonine
Tryptophan
Tyrosine
Valine

Public Class Methods

includes?(sym) click to toggle source

Determines if sym represents an amino acid code.

@param [#to_sym] sym amino acid code @return [Boolean] true if sym amino acid code is included in supported amino acids; false if not supported

# File lib/bel_parser/language/amino_acid.rb, line 35
def self.includes?(sym)
  @hash.key?(sym.to_sym)
end
names() click to toggle source

Gets all supported amino acid names.

# File lib/bel_parser/language/amino_acid.rb, line 40
def self.names
  @names
end
values() click to toggle source

Gets all supported amino acid codes (i.e. name, 1-Letter, 3-Letter).

# File lib/bel_parser/language/amino_acid.rb, line 45
def self.values
  @values
end