| Class | Bio::AAindex |
| In: |
lib/bio/db/aaindex.rb
(CVS)
|
| Parent: | KEGGDB |
| DELIMITER | = | "\n//\n" | Delimiter | |
| RS | = | DELIMITER | Delimiter | |
| TAGSIZE | = | 2 | Bio::DB API |
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 /m Bio::AAindex1.new(str) when /^M /m Bio::AAindex2.new(str) else raise end end
Returns authors in the A line.
# File lib/bio/db/aaindex.rb, line 102 def author if @data['author'] @data['author'] else @data['author'] = field_fetch('A') 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