| Class | Bio::AAindex |
| In: |
lib/bio/db/aaindex.rb
|
| 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
57: def self.auto(str)
58: case str
59: when /^I /m
60: Bio::AAindex1.new(str)
61: when /^M /m
62: Bio::AAindex2.new(str)
63: else
64: raise
65: end
66: end
Returns authors in the A line.
# File lib/bio/db/aaindex.rb, line 102
102: def author
103: if @data['author']
104: @data['author']
105: else
106: @data['author'] = field_fetch('A')
107: end
108: end
Returns database links in the R line. cf.) [‘LIT:123456’, ‘PMID:12345678’]
# File lib/bio/db/aaindex.rb, line 93
93: def dblinks
94: if @data['ref']
95: @data['ref']
96: else
97: @data['ref'] = field_fetch('R').split(' ')
98: end
99: end
Returns definition in the D line.
# File lib/bio/db/aaindex.rb, line 83
83: def definition
84: if @data['definition']
85: @data['definition']
86: else
87: @data['definition'] = field_fetch('D')
88: end
89: end