| Class | Bio::FANTOM::MaXML::Sequences |
| In: |
lib/bio/db/fantom.rb
(CVS)
|
| Parent: | MaXML |
| Data_XPath | = | 'maxml-sequences' |
# File lib/bio/db/fantom.rb, line 188 def [](*arg) if arg[0].is_a?(String) and arg.size == 1 then get(arg[0]) else to_a[*arg] end end
# File lib/bio/db/fantom.rb, line 196 def cloneids unless defined?(@cloneids) @cloneids = to_a.collect { |x| x.cloneid } end @cloneids end
# File lib/bio/db/fantom.rb, line 176 def get(idstr) unless defined?(@hash) @hash = {} end unless @hash.member?(idstr) then @hash[idstr] = self.find do |x| x.altid.values.index(idstr) end end @hash[idstr] end