JAL-2844 partitioning code made slightly clearer
[jalview.git] / forester / java / src / org / forester / application / support_statistics.java
index 4235048..938f5e0 100644 (file)
@@ -21,7 +21,7 @@
 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
 //
 // Contact: phylosoft @ gmail . com
-// WWW: www.phylosoft.org/forester
+// WWW: https://sites.google.com/site/cmzmasek/home/software/forester
 
 package org.forester.application;
 
@@ -32,6 +32,7 @@ import java.util.ArrayList;
 import java.util.List;
 
 import org.forester.io.parsers.PhylogenyParser;
+import org.forester.io.parsers.util.ParserUtils;
 import org.forester.phylogeny.Phylogeny;
 import org.forester.phylogeny.PhylogenyMethods;
 import org.forester.phylogeny.PhylogenyNode;
@@ -117,7 +118,7 @@ public final class support_statistics {
         if ( dss_comp != null ) {
             sb.append( ForesterUtil.getLineSeparator() );
             sb.append( "\t" + ForesterUtil.normalizeString( "values for support means:", max_length, true, ' ' )
-                    + "\t\t" );
+                       + "\t\t" );
             sb.append( ForesterUtil.round( dss_comp.arithmeticMean(), support_statistics.PLACES ) + "\t" );
             sb.append( ForesterUtil.round( dss_comp.sampleStandardDeviation(), support_statistics.PLACES ) + "\t" );
             sb.append( ForesterUtil.round( dss_comp.getMin(), support_statistics.PLACES ) + "\t" );
@@ -176,8 +177,7 @@ public final class support_statistics {
         for( int i = 0; i < phylogenies_infiles.length; i++ ) {
             try {
                 final PhylogenyFactory factory = ParserBasedPhylogenyFactory.getInstance();
-                final PhylogenyParser pp = ForesterUtil
-                        .createParserDependingOnFileType( phylogenies_infiles[ i ], true );
+                final PhylogenyParser pp = ParserUtils.createParserDependingOnFileType( phylogenies_infiles[ i ], true );
                 phylogenies[ i ] = factory.create( phylogenies_infiles[ i ], pp )[ 0 ];
             }
             catch ( final IOException e ) {