Module: BELParser::Language::CovalentProteinModification

Defined in:
lib/bel_parser/language/covalent_protein_modification.rb

Overview

CovalentProteinModification defines a controlled vocabulary of post-translational protein modifications.

see en.wikipedia.org/wiki/Post-translational_modification

Constant Summary collapse

Acetylation =
[:Acetylation, :A].freeze
Farnesylation =
[:Farnesylation, :F].freeze
Glycosylation =
[:Glycosylation, :G].freeze
Hydroxylation =
[:Hydroxylation, :H].freeze
Methylation =
[:Methylation, :M].freeze
Phosphorylation =
[:Phosphorylation, :P].freeze
Ribosylation =
[:Ribosylation, :R].freeze
Sumoylation =
[:Sumoylation, :S].freeze
Ubiquitination =
[:Ubiquitination, :U].freeze

Class Method Summary collapse

Class Method Details

.includes?(sym) ⇒ Boolean

Determines if sym represents a covalent protein modification.

covalent protein modifications; false if not supported

Parameters:

  • sym (#to_sym)

    covalent protein modification code

Returns:

  • (Boolean)

    true if sym code is included in supported



23
24
25
# File 'lib/bel_parser/language/covalent_protein_modification.rb', line 23

def self.includes?(sym)
  @hash.key?(sym.to_sym)
end

.namesObject

Gets all supported covalent protein modification.



28
29
30
# File 'lib/bel_parser/language/covalent_protein_modification.rb', line 28

def self.names
  @names
end

.valuesObject

Gets all supported covalent protein modification (i.e. name, 1-Letter).



33
34
35
# File 'lib/bel_parser/language/covalent_protein_modification.rb', line 33

def self.values
  @values
end