import org.forester.io.parsers.PhylogenyParser;
+import org.forester.io.parsers.nhx.NHXParser;
import org.forester.io.parsers.phyloxml.PhyloXmlParser;
import org.forester.io.parsers.util.ParserUtils;
import org.forester.io.writers.PhylogenyWriter;
public final class gsdi {
+ final static public boolean REPLACE_UNDERSCORES_IN_NH_SPECIES_TREE = true;
final static private String STRIP_OPTION = "s";
final static private String SDI_OPTION = "b";
final static private String MOST_PARSIMONIOUS_OPTION = "m";
}
else {
final PhylogenyParser p = ParserUtils.createParserDependingOnFileType( species_tree_file, true );
+ if ( REPLACE_UNDERSCORES_IN_NH_SPECIES_TREE && p instanceof NHXParser ) {
+ (( NHXParser ) p ).setReplaceUnderscores( true );
+ }
species_tree = factory.create( species_tree_file, p )[ 0 ];
PhylogenyMethods.transferNodeNameToField( species_tree,
PhylogenyMethods.PhylogenyNodeField.TAXONOMY_SCIENTIFIC_NAME );
public final class ForesterConstants {
- public final static String FORESTER_VERSION = "1.001";
- public final static String FORESTER_DATE = "120607";
+ public final static String FORESTER_VERSION = "1.003";
+ public final static String FORESTER_DATE = "120608";
public final static String PHYLO_XML_VERSION = "1.10";
public final static String PHYLO_XML_LOCATION = "http://www.phyloxml.org";