in progress
authorcmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Fri, 20 Jul 2012 00:36:24 +0000 (00:36 +0000)
committercmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Fri, 20 Jul 2012 00:36:24 +0000 (00:36 +0000)
forester/ruby/evoruby/lib/evo/apps/multi_sequence_extractor.rb

index aa860f1..d78f0dc 100644 (file)
@@ -315,7 +315,7 @@ module Evoruby
                   s = range.split("-")
                   from = s[ 0 ].to_i
                   to = s[ 1 ].to_i
-                  new_msa_domains.add_sequence( Sequence.new( orig_name + "/" + from + "-" + to + " [" + basename + "] [" + current_species + "]", seq.get_sequence_as_string[from..to] ) )
+                  new_msa_domains.add_sequence( Sequence.new( orig_name + "/" + from.to_s + "-" + to.to_s + " [" + basename + "] [" + current_species + "]", seq.get_sequence_as_string[from..to] ) )
                   if extension > 0
                     from_e = from - extension
                     if from_e < 0
@@ -325,7 +325,7 @@ module Evoruby
                     if to_e > seq.get_sequence_as_string.length - 1
                       to_e = seq.get_sequence_as_string.length - 1
                     end
-                    new_msa_domains_extended.add_sequence( Sequence.new( orig_name + "/" + from + "-" + to  + " [ext: " + extension.to_s + "] [" + basename + "] [" + current_species + "]",
+                    new_msa_domains_extended.add_sequence( Sequence.new( orig_name + "/" + from.to_s + "-" + to.to_s  + " [ext: " + extension.to_s + "] [" + basename + "] [" + current_species + "]",
                         seq.get_sequence_as_string[ from_e..to_e ] ) )
                   end
                 end