Class: Protein
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Protein
- 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_key ⇒ Object
14 15 16 |
# File 'lib/msf/models/protein.rb', line 14 def self.primary_key :ProteinID end |
.table_name ⇒ Object
11 12 13 |
# File 'lib/msf/models/protein.rb', line 11 def self.table_name :Proteins end |
Instance Method Details
#is_master_protein ⇒ Object
26 27 28 |
# File 'lib/msf/models/protein.rb', line 26 def is_master_protein self.IsMasterProtein end |
#protein_id ⇒ Object
17 18 19 |
# File 'lib/msf/models/protein.rb', line 17 def protein_id self.ProteinID end |
#sequence ⇒ Object
20 21 22 |
# File 'lib/msf/models/protein.rb', line 20 def sequence self.Sequence end |
#sequence_hash_code ⇒ Object
23 24 25 |
# File 'lib/msf/models/protein.rb', line 23 def sequence_hash_code self.SequenceHashCode end |