class Scaffolder::Test::Annotation

Public Class Methods

new(options = Hash.new) click to toggle source
# File lib/scaffolder/test/annotation.rb, line 16
def initialize(options = Hash.new)
  defaults = {:seqname => 'record', :start => 1, :end     => 10,
              :strand  => '+',      :phase => 1, :feature => 'CDS'}
  @options = defaults.merge(options)
end

Public Instance Methods

initialize_copy(source) click to toggle source
Calls superclass method
# File lib/scaffolder/test/annotation.rb, line 22
def initialize_copy(source)
  super
  @options = @options.dup
end
to_gff3_record() click to toggle source
# File lib/scaffolder/test/annotation.rb, line 27
def to_gff3_record
  Bio::GFF::GFF3::Record.new(
    self.seqname, nil, self.feature, self.start,
    self.end,     nil, self.strand,  self.phase,
    self.attributes.to_a)
end