Method: Bio::GFF::Record#initialize

Defined in:
lib/bio/db/gff.rb

#initialize(str) ⇒ Record

Creates a Bio::GFF::Record object. Is typically not called directly, but is called automatically when creating a Bio::GFF object.


Arguments:

  • str: a tab-delimited line in GFF format



125
126
127
128
129
130
131
# File 'lib/bio/db/gff.rb', line 125

def initialize(str)
  @comment = str.chomp[/#.*/]
  return if /^#/.match(str)
  @seqname, @source, @feature, @start, @end, @score, @strand, @frame,
    attributes, = str.chomp.split("\t")
  @attributes = parse_attributes(attributes) if attributes
end