Module: Pfam
- Extended by:
- Resource
- Defined in:
- lib/rbbt/sources/pfam.rb
Constant Summary collapse
- NAMES_FILE =
InterPro.pfam_names.produce
Class Method Summary collapse
Class Method Details
.name(id) ⇒ Object
48 49 50 |
# File 'lib/rbbt/sources/pfam.rb', line 48 def self.name(id) name_index[id] || id end |
.name_index ⇒ Object
44 45 46 |
# File 'lib/rbbt/sources/pfam.rb', line 44 def self.name_index @name_index ||= TSV.open NAMES_FILE, :single, :unnamed => true end |