Stores meta-data "#sequence-region seqid start end".
creates a new SequenceRegion class
# File lib/bio/db/gff.rb, line 1060 def initialize(seqid, start, endpos) @seqid = seqid @start = start ? start.to_i : nil @end = endpos ? endpos.to_i : nil end
parses given string and returns SequenceRegion class
# File lib/bio/db/gff.rb, line 1067 def self.parse(str) dummy, seqid, start, endpos = str.chomp.split(/\s+/, 4).collect { |x| unescape(x) } self.new(seqid, start, endpos) end
Generated with the Darkfish Rdoc Generator 2.