final static private String E_MAIL = "czmasek@burnham.org";
final static private String WWW = "www.phylosoft.org";
- private static void process( final File pfams_file, final List<PfamToGoMapping> mappings, boolean allow_duplicates )
- throws IOException {
+ private static void process( final File pfams_file,
+ final List<PfamToGoMapping> mappings,
+ final boolean allow_duplicates ) throws IOException {
final BufferedReader reader = ForesterUtil.obtainReader( pfams_file );
String line = "";
int found_count = 0;
}
final List<String> allowed_options = new ArrayList<String>();
allowed_options.add( ALLOW_DUPLICATES_OPTION );
- if ( cla.getNumberOfNames() != 2 && cla.getNumberOfNames() != 3 ) {
+ if ( ( cla.getNumberOfNames() != 2 ) && ( cla.getNumberOfNames() != 3 ) ) {
printHelp();
System.exit( -1 );
}
// }
private static void processNode( final PhylogenyNode node, final int i ) {
if ( node.isExternal() ) {
- String c = "" + node.getNodeData().getBinaryCharacters().getPresentCount();
- String s = node.getNodeData().getTaxonomy().getScientificName();
+ final String c = "" + node.getNodeData().getBinaryCharacters().getPresentCount();
+ final String s = node.getNodeData().getTaxonomy().getScientificName();
System.out.println( s + "\t" + c );
}
}
import org.forester.archaeopteryx.Options.PHYLOGENY_GRAPHICS_TYPE;
import org.forester.phylogeny.Phylogeny;
import org.forester.phylogeny.data.SequenceRelation;
-import org.forester.util.ForesterUtil;
import org.forester.util.ForesterConstants;
-
+import org.forester.util.ForesterUtil;
// Use like this:
// <applet archive="forester.jar"
*
* @param format must be NH, NHX, NEXUS or PHYLOXML
* @return the phylogeny string
- * @author Hervé Ménager
+ * @author Herve Menager
*/
public String getCurrentPhylogeny( final String format ) {
removeTextFrame();
case NEXUS:
return getMainPanel().getCurrentPhylogeny().toNexus();
case PHYLOXML:
- return getMainPanel().getCurrentPhylogeny().toPhyloXML(-1);
+ return getMainPanel().getCurrentPhylogeny().toPhyloXML( -1 );
default:
break;
}
return new String();
}
-
void buildFontSizeMenu() {
_font_size_menu = MainFrame.createMenu( MainFrame.FONT_SIZE_MENU_LABEL, getConfiguration() );
_font_size_menu.add( _super_tiny_fonts_mi = new JMenuItem( "Super tiny fonts" ) );
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}
-}
-
+ public enum PhylogeneticTreeFormats {
+ NH, NHX, NEXUS, PHYLOXML
+ }
+}