From 90d29ca20f3e7c5007a21e9e8ca7f44d57b4ce67 Mon Sep 17 00:00:00 2001 From: "cmzmasek@gmail.com" Date: Thu, 28 Nov 2013 00:26:48 +0000 Subject: [PATCH] inprogress --- forester/ruby/evoruby/lib/evo/tool/multi_sequence_extractor.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/forester/ruby/evoruby/lib/evo/tool/multi_sequence_extractor.rb b/forester/ruby/evoruby/lib/evo/tool/multi_sequence_extractor.rb index ed085a1..b435566 100644 --- a/forester/ruby/evoruby/lib/evo/tool/multi_sequence_extractor.rb +++ b/forester/ruby/evoruby/lib/evo/tool/multi_sequence_extractor.rb @@ -43,6 +43,7 @@ module Evoruby def initialize() @file_to_msa = Hash.new + @seqs = 0 end def run() @@ -549,8 +550,10 @@ module Evoruby rescue Exception => e Util.fatal_error( PRG_NAME, "error: " + e.to_s ) end - if @file_to_msa.size < 500 && msa.get_number_of_seqs <= 50000 + if @seqs <= 10000000 @file_to_msa[ input ] = msa + @seqs += msa.get_number_of_seqs + puts "total seqs in memory: " + @seqs.to_str end msa end -- 1.7.10.2