X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Farchaeopteryx%2FArchaeopteryx.java;h=8bd8df52971bb78523159d6140bf1bf797e26659;hb=09d0269700d3108a10d8e349e37384a9cad551ea;hp=b9bdcb84f5706092b0161c65dc1e720d9dcdd5f6;hpb=eee996a6476a1e3d84c07f8f690dcde3ff4b2ef5;p=jalview.git diff --git a/forester/java/src/org/forester/archaeopteryx/Archaeopteryx.java b/forester/java/src/org/forester/archaeopteryx/Archaeopteryx.java index b9bdcb8..8bd8df5 100644 --- a/forester/java/src/org/forester/archaeopteryx/Archaeopteryx.java +++ b/forester/java/src/org/forester/archaeopteryx/Archaeopteryx.java @@ -32,7 +32,6 @@ import org.forester.io.parsers.nexus.NexusPhylogeniesParser; import org.forester.io.parsers.nhx.NHXParser; import org.forester.io.parsers.phyloxml.PhyloXmlParser; import org.forester.phylogeny.Phylogeny; -import org.forester.phylogeny.factories.ParserBasedPhylogenyFactory; import org.forester.util.ForesterUtil; // @@ -43,8 +42,6 @@ import org.forester.util.ForesterUtil; // public final class Archaeopteryx { - private final static boolean TEST = false; //TODO remove me! - public static MainFrame createApplication( final Phylogeny phylogeny ) { final Phylogeny[] phylogenies = new Phylogeny[ 1 ]; phylogenies[ 0 ] = phylogeny; @@ -110,27 +107,12 @@ public final class Archaeopteryx { else if ( p instanceof PhyloXmlParser ) { MainFrameApplication.warnIfNotPhyloXmlValidation( conf ); } - phylogenies = Util.readPhylogenies( p, f ); + phylogenies = ForesterUtil.readPhylogenies( p, f ); if ( nhx_or_nexus && conf.isInternalNumberAreConfidenceForNhParsing() ) { for( final Phylogeny phy : phylogenies ) { ForesterUtil.transferInternalNodeNamesToConfidence( phy ); } } - // - // Phylogeny py = phylogenies[ 0 ]; - // for( final PhylogenyNodeIterator iter = py.iteratorExternalForward(); iter.hasNext(); ) { - // final PhylogenyNode node = iter.next(); - // System.out.println( node.getNodeData().getTaxonomy().getScientificName() + "\t" - // + node.getNodeData().getBinaryCharacters().getPresentCount() ); - // } - // for( final PhylogenyNodeIterator iter = py.iteratorPreorder(); iter.hasNext(); ) { - // final PhylogenyNode node = iter.next(); - // if ( !node.isExternal() ) { - // System.out.println( node.getNodeData().getTaxonomy().getScientificName() + "\t" - // + node.getNodeData().getBinaryCharacters().getPresentCount() ); - // } - // } - // } } } @@ -142,32 +124,8 @@ public final class Archaeopteryx { title = f.getName(); } try { - String s = ""; - if ( TEST ) { - s = "/home/czmasek/888.xml"; - if ( ForesterUtil.isReadableFile( s ) != null ) { - s = "/Users/zma/888.xml"; - if ( ForesterUtil.isReadableFile( s ) != null ) { - s = "C:\\888.xml"; - if ( ForesterUtil.isReadableFile( s ) != null ) { - s = "C:\\Documents and Settings\\czmasek\\"; - } - } - } - } - if ( !TEST ) { - MainFrameApplication.createInstance( phylogenies, conf, title ); - } - else { - MainFrameApplication.createInstance( ParserBasedPhylogenyFactory.getInstance() - .create( s, new PhyloXmlParser() ), - conf, - title ); - } + MainFrameApplication.createInstance( phylogenies, conf, title ); } - // catch ( final IOException ex ) { - // ForesterUtil.fatalError( Constants.PRG_NAME, "failed to start: " + ex.getLocalizedMessage() ); - // } catch ( final Exception ex ) { Util.unexpectedException( ex ); }