Class: Protein

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

Overview

ActiveRecord model of MSF Protein

Example:

Protein.find(1)
Protein.first.sequence
Protein.first.protein_score
Protein.first.protein_annotation
Protein.first.peptides

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.primary_keyObject



14
15
16
# File 'lib/msf/models/protein.rb', line 14

def self.primary_key
  :ProteinID
end

.table_nameObject



11
12
13
# File 'lib/msf/models/protein.rb', line 11

def self.table_name
  :Proteins
end

Instance Method Details

#is_master_proteinObject



26
27
28
# File 'lib/msf/models/protein.rb', line 26

def is_master_protein
  self.IsMasterProtein
end

#protein_idObject



17
18
19
# File 'lib/msf/models/protein.rb', line 17

def protein_id
  self.ProteinID
end

#sequenceObject



20
21
22
# File 'lib/msf/models/protein.rb', line 20

def sequence
  self.Sequence
end

#sequence_hash_codeObject



23
24
25
# File 'lib/msf/models/protein.rb', line 23

def sequence_hash_code
  self.SequenceHashCode
end