Sha256: 5dbcb31817513920e3e0381b2e969384dde94163b80b9bfb6660f8ebe744d007
Contents?: true
Size: 830 Bytes
Versions: 1
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").path File.open(tmp,'w'){ |out| out.print(gff) } tmp end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scaffolder-annotation-locator-0.0.1 | spec/spec_helper.rb |