Class: Mspire::Ident::Protein

Inherits:
Object
  • Object
show all
Includes:
ProteinLike
Defined in:
lib/mspire/ident/protein.rb

Overview

a generic protein class that is ProteinLike

Instance Attribute Summary

Attributes included from ProteinLike

#description, #id, #sequence

Instance Method Summary collapse

Methods included from ProteinLike

#gene_id

Constructor Details

#initialize(id = nil, sequence = nil) ⇒ Protein

Returns a new instance of Protein.



28
29
30
# File 'lib/mspire/ident/protein.rb', line 28

def initialize(id=nil, sequence=nil)
  (@id, @sequence) = id, sequence
end