+ File return_species_tree = null;
+ if ( !sdir && cla.isOptionSet( RETURN_SPECIES_TREE ) ) {
+ if ( !cla.isOptionHasAValue( RETURN_SPECIES_TREE ) ) {
+ ForesterUtil.fatalError( "no value for -" + RETURN_SPECIES_TREE );
+ }
+ final String s = cla.getOptionValueAsCleanString( RETURN_SPECIES_TREE );
+ return_species_tree = new File( s );
+ if ( return_species_tree.exists() ) {
+ ForesterUtil.fatalError( "\"" + return_species_tree + "\" already exists" );
+ }
+ }
+ File return_gene_tree = null;
+ if ( !sdir && cla.isOptionSet( RETURN_BEST_GENE_TREE ) ) {
+ if ( !cla.isOptionHasAValue( RETURN_BEST_GENE_TREE ) ) {
+ ForesterUtil.fatalError( "no value for -" + RETURN_BEST_GENE_TREE );
+ }
+ final String s = cla.getOptionValueAsCleanString( RETURN_BEST_GENE_TREE );
+ return_gene_tree = new File( s );
+ if ( return_gene_tree.exists() ) {
+ ForesterUtil.fatalError( "\"" + return_gene_tree + "\" already exists" );
+ }
+ }
+ boolean transfer_taxonomy = false;
+ if ( !sdir && cla.isOptionSet( TRANSFER_TAXONOMY_OPTION ) ) {
+ if ( return_gene_tree == null ) {
+ ForesterUtil.fatalError( "no point in transferring taxonomy data without returning best gene tree" );
+ }
+ transfer_taxonomy = true;
+ }