# HG changeset patch # User biowebdb # Date 1395341898 14400 # Node ID e70d522bcaaeb4b88ba97958461b137625d4b1f7 # Parent 79fa20b1445fad7b2efa8096a8365203fc366db8 Include xml diff -r 79fa20b1445f -r e70d522bcaae Flash_wrapper.rb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Flash_wrapper.rb Thu Mar 20 14:58:18 2014 -0400 @@ -0,0 +1,17 @@ +#!/usr/bin/ruby +require 'logger' +require "#{ENV['biowebdb']}/bioinformatics/Bioinformatics" +c = Bioinformatics.program 'Flash' +c.logger(Logger.new(STDOUT)) +c.sequence1 = ARGV[0] +c.sequence2 = ARGV[1] +c.readLen = ARGV[2] +c.fragLen = ARGV[3] +c.maxOverlap = ARGV[4] +c.workPath = '/tmp/' +c.execute(c.lineCommand) + +Kernel.system("cp #{c.outExtended} #{ARGV[5]}") +Kernel.system("cp #{c.outNotComb1} #{ARGV[6]}") +Kernel.system("cp #{c.outNotComb2} #{ARGV[7]}") +