Class: AminoAcidModification

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/msf/models/amino_acid_modification.rb

Overview

ActiveRecord model of MSF AminoAcidModification

Example:

AminoAcidModification.find(1)

AminoAcidModification.first.modification_name

AminoAcidModification.first.amino_acids.first.amino_acid_name

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.primary_keyObject



12
13
14
# File 'lib/msf/models/amino_acid_modification.rb', line 12

def self.primary_key
  :AminoAcidModificationID
end

.table_nameObject



9
10
11
# File 'lib/msf/models/amino_acid_modification.rb', line 9

def self.table_name
  :AminoAcidModifications
end

Instance Method Details

#abbreviationObject



30
31
32
# File 'lib/msf/models/amino_acid_modification.rb', line 30

def abbreviation
  self.Abbreviation
end

#amino_acid_modification_idObject



15
16
17
# File 'lib/msf/models/amino_acid_modification.rb', line 15

def amino_acid_modification_id
  self.AminoAcidModificationID
end

#delta_average_massObject



39
40
41
# File 'lib/msf/models/amino_acid_modification.rb', line 39

def delta_average_mass
  self.DeltaAverageMass
end

#delta_massObject



21
22
23
# File 'lib/msf/models/amino_acid_modification.rb', line 21

def delta_mass
  self.DeltaMass
end

#is_activeObject



36
37
38
# File 'lib/msf/models/amino_acid_modification.rb', line 36

def is_active
  self.IsActive
end

#is_substitutionObject



45
46
47
# File 'lib/msf/models/amino_acid_modification.rb', line 45

def is_substitution
  self.IsSubstitution
end

#leaving_groupObject



27
28
29
# File 'lib/msf/models/amino_acid_modification.rb', line 27

def leaving_group
  self.LeavingGroup
end

#modification_nameObject



18
19
20
# File 'lib/msf/models/amino_acid_modification.rb', line 18

def modification_name
  self.ModificationName
end

#position_typeObject



33
34
35
# File 'lib/msf/models/amino_acid_modification.rb', line 33

def position_type
  self.PositionType
end

#substitutionObject



24
25
26
# File 'lib/msf/models/amino_acid_modification.rb', line 24

def substitution
  self.Substitution
end

#unimod_accessionObject



42
43
44
# File 'lib/msf/models/amino_acid_modification.rb', line 42

def unimod_accession
  self.UnimodAccession
end