// 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.archaeopteryx;
import org.forester.phylogeny.PhylogenyMethods;
import org.forester.util.ForesterUtil;
-//
-// java -javaagent:shiftone-jrat.jar -cp
-// $HOME/SOFTWARE_DEV/ECLIPSE_WORKSPACE/forester-atv/java/forester.jar:.
-// org.forester.archaeopteryx.Archaeopteryx
-// -c $HOME/SOFTWARE_DEV/ECLIPSE_WORKSPACE/forester-atv/_aptx_configuration_file
-//
public final class Archaeopteryx {
public static MainFrame createApplication( final Phylogeny phylogeny ) {
final NHXParser nhx = ( NHXParser ) p;
nhx.setReplaceUnderscores( conf.isReplaceUnderscoresInNhParsing() );
nhx.setIgnoreQuotes( false );
- PhylogenyMethods.TAXONOMY_EXTRACTION te = PhylogenyMethods.TAXONOMY_EXTRACTION.NO;
- if ( conf.isExtractPfamTaxonomyCodesInNhParsing() ) {
- te = PhylogenyMethods.TAXONOMY_EXTRACTION.PFAM_STYLE_ONLY;
- }
- nhx.setTaxonomyExtraction( te );
+ nhx.setTaxonomyExtraction( conf.getTaxonomyExtraction() );
}
else if ( p instanceof NexusPhylogeniesParser ) {
nhx_or_nexus = true;
try {
MainFrameApplication.createInstance( phylogenies, conf, title, current_dir );
}
- catch ( final Exception ex ) {
- AptxUtil.unexpectedException( ex );
+ catch ( final OutOfMemoryError e ) {
+ AptxUtil.outOfMemoryError( e );
+ }
+ catch ( final Exception e ) {
+ AptxUtil.unexpectedException( e );
}
- catch ( final Error err ) {
- AptxUtil.unexpectedError( err );
+ catch ( final Error e ) {
+ AptxUtil.unexpectedError( e );
}
}
}
\ No newline at end of file