final static private String WWW = "www.phylosoft.org/forester/";
public static void main( final String args[] ) {
- ForesterUtil.printProgramInformation( PRG_NAME, PRG_VERSION, PRG_DATE, E_MAIL, WWW );
+ ForesterUtil.printProgramInformation( PRG_NAME, null, PRG_VERSION, PRG_DATE, E_MAIL, WWW, ForesterUtil.getForesterLibraryInformation() );
+
CommandLineArguments cla = null;
try {
cla = new CommandLineArguments( args );
final static private String PRG_NAME = "count_support";
final static private String PRG_VERSION = "1.0";
final static private String PRG_DATE = "2008.03.04";
+ final static private String E_MAIL = "phylosoft@gmail.com";
+ final static private String WWW = "www.phylosoft.org/forester/";
private final static boolean WRITE_EVALUATORS_AS_NHX = false;
public static void main( final String args[] ) {
- ForesterUtil
- .printProgramInformation( count_support.PRG_NAME, count_support.PRG_VERSION, count_support.PRG_DATE );
+ ForesterUtil.printProgramInformation( PRG_NAME, null, PRG_VERSION, PRG_DATE, E_MAIL, WWW, ForesterUtil.getForesterLibraryInformation() );
+
if ( ( args.length < 3 ) || ( args.length > 7 ) ) {
System.out.println();
System.out.println( count_support.PRG_NAME + ": wrong number of arguments" );
}
private static void printHelp() {
- ForesterUtil.printProgramInformation( PRG_NAME, PRG_DESC, PRG_VERSION, PRG_DATE, E_MAIL, WWW );
+ ForesterUtil.printProgramInformation( PRG_NAME, PRG_DESC, PRG_VERSION, PRG_DATE, E_MAIL, WWW, ForesterUtil.getForesterLibraryInformation() );
System.out.println( "Usage:" );
System.out.println();
System.out.println( PRG_NAME + " <options> <msa input file>" );
*/
static void about() {
final StringBuffer about = new StringBuffer( "Archaeopteryx\nVersion " + Constants.VERSION + "\n" );
- about.append( "Copyright (C) 2007-2011 Christian Zmasek\n" );
+ about.append( "Copyright (C) 2007-2012 Christian M. Zmasek\n" );
about.append( "All Rights Reserved\n" );
about.append( "License: GNU Lesser General Public License (LGPL)\n" );
about.append( "Last modified: " + Constants.PRG_DATE + "\n" );
+ about.append( "Based on: " + ForesterUtil.getForesterLibraryInformation() + "\n" );
about.append( "phyloXML version : " + ForesterConstants.PHYLO_XML_VERSION + "\n" );
about.append( "phyloXML location: " + ForesterConstants.PHYLO_XML_LOCATION + "\n" );
if ( !ForesterUtil.isEmpty( ForesterUtil.JAVA_VERSION ) && !ForesterUtil.isEmpty( ForesterUtil.JAVA_VENDOR ) ) {
public final class ForesterConstants {
+ public final static String FORESTER_VERSION = "1.000";
+ public final static String FORESTER_DATE = "120604";
+
public final static String PHYLO_XML_VERSION = "1.10";
public final static String PHYLO_XML_LOCATION = "http://www.phyloxml.org";
public final static String PHYLO_XML_XSD = "phyloxml.xsd";
public final static String UTF8 = "UTF-8";
public final static String PHYLO_XML_REFERENCE = "Han MV and Zmasek CM (2009): \"phyloXML: XML for evolutionary biology and comparative genomics\", BMC Bioinformatics 10:356";
public final static boolean RELEASE = false;
+
public enum PhylogeneticTreeFormats {
NH, NHX, NEXUS, PHYLOXML
sb.append( separator );
}
}
+
+ final public static String getForesterLibraryInformation() {
+ return "forester " + ForesterConstants.FORESTER_VERSION + " (" + ForesterConstants.FORESTER_DATE + ")";
+ }
public static boolean seqIsLikelyToBeAa( final String s ) {
final String seq = s.toLowerCase();
final String prg_version,
final String date,
final String email,
- final String www ) {
+ final String www,
+ final String based_on ) {
String my_prg_name = new String( prg_name );
if ( !ForesterUtil.isEmpty( desc ) ) {
my_prg_name += ( " - " + desc );
}
System.out.println();
System.out.println();
- System.out.println( "WWW : " + www );
- System.out.println( "Contact: " + email );
+ System.out.println( "WWW : " + www );
+ System.out.println( "Contact : " + email );
+ if ( !ForesterUtil.isEmpty( based_on ) ) {
+ System.out.println( "Based on: " + based_on );
+ }
if ( !ForesterUtil.isEmpty( ForesterUtil.JAVA_VERSION ) && !ForesterUtil.isEmpty( ForesterUtil.JAVA_VENDOR ) ) {
System.out.println();
System.out.println( "[running on Java " + ForesterUtil.JAVA_VERSION + " " + ForesterUtil.JAVA_VENDOR + "]" );
final String date,
final String email,
final String www ) {
- printProgramInformation( prg_name, null, prg_version, date, email, www );
+ printProgramInformation( prg_name, null, prg_version, date, email, www, null );
}
final public static void printWarningMessage( final String prg_name, final String message ) {