DB
DTD of MaXML(Mouse annotation XML) fantom.gsc.riken.go.jp/maxml/maxml.dtd
This class is for {allseq|repseq|allclust}.sep.xml, not for {allseq|repseq|allclust}.xml.
# File lib/bio/db/fantom.rb, line 62 def initialize(x) if x.is_a?(REXML::Element) then @elem = x else if x.is_a?(String) then x = x.sub(/#{Regexp.escape(DELIMITER)}\z/m, "\n") end doc = REXML::Document.new(x) @elem = doc.elements[self.class::Data_XPath] #raise 'element is null' unless @elem @elem = REXML::Document.new('') unless @elem end end
# File lib/bio/db/fantom.rb, line 90 def entry_id unless defined?(@entry_id) @entry_id = @elem.attributes['id'] end @entry_id end
Generated with the Darkfish Rdoc Generator 2.