inprogress
authorcmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Sat, 28 Sep 2013 03:40:50 +0000 (03:40 +0000)
committercmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Sat, 28 Sep 2013 03:40:50 +0000 (03:40 +0000)
forester/ruby/evoruby/lib/evo/io/parser/hmmscan_domain_extractor.rb

index 5d03737..e9d0bf0 100644 (file)
@@ -388,8 +388,10 @@ module Evoruby
                   from = 1
                 end
                 to = to + ADD_TO_CLOSE_PAIRS
-                if to > in_msa.get_length
-                  to = in_msa.get_length
+                temp_seqs = in_msa.find_by_name_start( seq_name, true )
+                temp_seq = in_msa.get_sequence( temp_seqs[ 0 ] )
+                if to >  temp_seq.get_length
+                  to =  temp_seq.get_length
                 end
               end