Class: Chem::KEGG::KeggDirectory::KeggPfam

Inherits:
Object
  • Object
show all
Defined in:
lib/chem/db/kegg.rb

Instance Method Summary collapse

Constructor Details

#initialize(pfam_key, kegg) ⇒ KeggPfam

Returns a new instance of KeggPfam.


164
165
166
167
# File 'lib/chem/db/kegg.rb', line 164

def initialize pfam_key, kegg
  @kegg = kegg
  @pfam_key = pfam_key
end

Instance Method Details

#[](organism) ⇒ Object


169
170
171
# File 'lib/chem/db/kegg.rb', line 169

def [](organism)
  @kegg[organism][@pfam_key]
end