Sha256: edaef22d498d755c27da72d8fa8ec2c8d29324596e145241b7ab670b55af5b31

Contents?: true

Size: 742 Bytes

Versions: 4

Compression:

Stored size: 742 Bytes

Contents

require 'bundler'
begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts "Run `bundle install` to install missing gems"
  exit e.status_code
end

require 'tempfile'

$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'scaffolder'

def write_sequence_file(*sequences)
  file = Tempfile.new("sequence").path
  File.open(file,'w') do |tmp|
    sequences.flatten.each do |sequence|
      seq = Bio::Sequence.new(sequence[:sequence])
      tmp.print(seq.output(:fasta,:header => sequence[:name]))
    end
  end
  file
end

def write_scaffold_file(scaffold)
  file = Tempfile.new("scaffold").path
  File.open(file,'w'){|tmp| tmp.print(YAML.dump(scaffold))}
  file
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
scaffolder-0.4.3 features/support/env.rb
scaffolder-0.4.2 features/support/env.rb
scaffolder-0.4.1 features/support/env.rb
scaffolder-0.4.0 features/support/env.rb