Sha256: ef72d9085dc53d35f95d8e7f00b1710001b176dd5c0891e0a0158ab3d623105f
Contents?: true
Size: 830 Bytes
Versions: 5
Compression:
Stored size: 830 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'tempfile' require 'rspec' require 'scaffolder/test/helpers' require 'scaffolder/annotation_locator' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| include Scaffolder::Test include Scaffolder::Test::Helpers def generate_gff3_file(annotations) gff = Bio::GFF::GFF3.new gff.records = annotations.map do |a| Bio::GFF::GFF3::Record.new(a[:seqname], a[:source], 'CDS', a[:start], a[:end], nil, a[:strand], a[:phase]) end tmp = Tempfile.new("gff") File.open(tmp.path,'w'){ |out| out.print(gff) } tmp end end
Version data entries
5 entries across 5 versions & 1 rubygems