git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
inprogress
[jalview.git]
/
forester
/
ruby
/
evoruby
/
lib
/
evo
/
tool
/
phylogeny_factory.rb
diff --git
a/forester/ruby/evoruby/lib/evo/tool/phylogeny_factory.rb
b/forester/ruby/evoruby/lib/evo/tool/phylogeny_factory.rb
index
624623a
..
5e175f7
100644
(file)
--- a/
forester/ruby/evoruby/lib/evo/tool/phylogeny_factory.rb
+++ b/
forester/ruby/evoruby/lib/evo/tool/phylogeny_factory.rb
@@
-258,8
+258,9
@@
module Evoruby
def get_id( aln_name )
id = nil
def get_id( aln_name )
id = nil
- if aln_name.include? "__"
- id = aln_name[ 0, aln_name.index( "__" ) ]
+ aln_name.index
+ if aln_name =~ /_{2}(.+)_{2}/
+ id = $1
end
id
end
end
id
end