Auto detecter for two AAindex formats. returns a Bio::AAindex1 object or a Bio::AAindex2 object.
# File lib/bio/db/aaindex.rb, line 57 def self.auto(str) case str when /^I / Bio::AAindex1.new(str) when /^M / Bio::AAindex2.new(str) else raise end end
Returns database links in the R line. cf.) [‘LIT:123456’, ‘PMID:12345678’]
# File lib/bio/db/aaindex.rb, line 93 def dblinks if @data['ref'] @data['ref'] else @data['ref'] = field_fetch('R').split(' ') end end
Returns definition in the D line.
# File lib/bio/db/aaindex.rb, line 83 def definition if @data['definition'] @data['definition'] else @data['definition'] = field_fetch('D') end end
Returns entry_id in the H line.
# File lib/bio/db/aaindex.rb, line 74 def entry_id if @data['entry_id'] @data['entry_id'] else @data['entry_id'] = field_fetch('H') end end
Generated with the Darkfish Rdoc Generator 2.
Returns comment (if any).