From: cmzmasek@gmail.com Date: Thu, 28 Jul 2011 20:06:36 +0000 (+0000) Subject: search binary characters X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=f9910a9edd531e69f4f7003a13dc7c5c4117a537;p=jalview.git search binary characters --- diff --git a/forester/java/src/org/forester/phylogeny/PhylogenyMethods.java b/forester/java/src/org/forester/phylogeny/PhylogenyMethods.java index 5b936d5..b118fb5 100644 --- a/forester/java/src/org/forester/phylogeny/PhylogenyMethods.java +++ b/forester/java/src/org/forester/phylogeny/PhylogenyMethods.java @@ -1011,6 +1011,15 @@ public class PhylogenyMethods { } } } + else if ( node.getNodeData().getBinaryCharacters() != null ) { + final String[] bc_ary = node.getNodeData().getBinaryCharacters().getPresentCharactersAsStringArray(); + I: for( final String bc : bc_ary ) { + if ( match( bc, query, case_sensitive, partial ) ) { + match = true; + break I; + } + } + } if ( match ) { nodes.add( node ); } @@ -1093,6 +1102,16 @@ public class PhylogenyMethods { } } } + else if ( node.getNodeData().getBinaryCharacters() != null ) { + final String[] bc_ary = node.getNodeData().getBinaryCharacters() + .getPresentCharactersAsStringArray(); + I: for( final String bc : bc_ary ) { + if ( match( bc, query, case_sensitive, partial ) ) { + match = true; + break I; + } + } + } if ( !match ) { all_matched = false; break;