return _graphics_export_y;
}
- int getDefaultBootstrapSamples() {
+ public int getDefaultBootstrapSamples() {
return _default_bootstrap_samples;
}
public final class Constants {
final static boolean __ALLOW_PHYLOGENETIC_INFERENCE = true;
- final static boolean __RELEASE = false; // TODO remove me
- final static boolean __SNAPSHOT_RELEASE = false; // TODO remove me
- final static String PRG_NAME = "Archaeopteryx";
+ public final static boolean __RELEASE = false; // TODO remove me
+ public final static boolean __SNAPSHOT_RELEASE = false; // TODO remove me
+ public final static String PRG_NAME = "Archaeopteryx";
final static String VERSION = "0.960 beta A48";
final static String PRG_DATE = "2011.03.09";
final static String DEFAULT_CONFIGURATION_FILE_NAME = "_aptx_configuration_file";
}
}
- Configuration getConfiguration() {
+ public Configuration getConfiguration() {
return _configuration;
}
_circular_type_cbmi.setSelected( false );
}
- void showWhole() {
+ public void showWhole() {
_mainpanel.getControlPanel().showWhole();
}
import org.forester.archaeopteryx.Options.NODE_LABEL_DIRECTION;
import org.forester.archaeopteryx.Options.PHYLOGENY_GRAPHICS_TYPE;
import org.forester.archaeopteryx.Util.GraphicsExportType;
+import org.forester.archaeopteryx.tools.AncestralTaxonomyInferrer;
+import org.forester.archaeopteryx.tools.GoAnnotation;
+import org.forester.archaeopteryx.tools.PhyloInferenceDialog;
+import org.forester.archaeopteryx.tools.PhylogeneticInferenceOptions;
+import org.forester.archaeopteryx.tools.PhylogeneticInferrer;
+import org.forester.archaeopteryx.tools.TaxonomyDataObtainer;
+import org.forester.archaeopteryx.tools.UniProtSequenceObtainer;
import org.forester.archaeopteryx.webservices.PhylogeniesWebserviceClient;
import org.forester.archaeopteryx.webservices.WebservicesManager;
import org.forester.io.parsers.FastaParser;
if ( ( _mainpanel.getCurrentPhylogeny() == null ) || ( _mainpanel.getCurrentPhylogeny().isEmpty() ) ) {
return;
}
- final MainPanelEdit a = new MainPanelEdit( this,
- _mainpanel.getCurrentTreePanel(),
- _mainpanel.getCurrentPhylogeny() );
+ final GoAnnotation a = new GoAnnotation( this,
+ _mainpanel.getCurrentTreePanel(),
+ _mainpanel.getCurrentPhylogeny() );
new Thread( a ).start();
}
}
@Override
- MainPanel getMainPanel() {
+ public MainPanel getMainPanel() {
return _mainpanel;
}
System.gc();
}
- void readSeqsFromFile() {
+ public void readSeqsFromFile() {
// Set an initial directory if none set yet
final File my_dir = getCurrentDir();
_seqs_filechooser.setMultiSelectionEnabled( false );
}
}
- void readMsaFromFile() {
+ public void readMsaFromFile() {
// Set an initial directory if none set yet
final File my_dir = getCurrentDir();
_msa_filechooser.setMultiSelectionEnabled( false );
return _phylogenetic_inference_options;
}
- Msa getMsa() {
+ public Msa getMsa() {
return _msa;
}
_msa_file = msa_file;
}
- File getMsaFile() {
+ public File getMsaFile() {
return _msa_file;
}
- List<Sequence> getSeqs() {
+ public List<Sequence> getSeqs() {
return _seqs;
}
_seqs_file = seqs_file;
}
- File getSeqsFile() {
+ public File getSeqsFile() {
return _seqs_file;
}
} // MainFrameApplication.
getControlPanel().showWhole();
}
- void addPhylogenyInNewTab( final Phylogeny phy,
- final Configuration config,
- final String default_name,
- final String full_path ) {
+ public void addPhylogenyInNewTab( final Phylogeny phy,
+ final Configuration config,
+ final String default_name,
+ final String full_path ) {
final TreePanel treepanel = new TreePanel( phy, config, this );
getControlPanel().phylogenyAdded( config );
treepanel.setControlPanel( getControlPanel() );
}
}
- TreePanel getCurrentTreePanel() {
+ public TreePanel getCurrentTreePanel() {
final int selected = getTabbedPane().getSelectedIndex();
if ( selected >= 0 ) {
return _treepanels.get( selected );
import javax.swing.tree.TreePath;
import javax.swing.tree.TreeSelectionModel;
+import org.forester.archaeopteryx.tools.ImageLoader;
import org.forester.io.parsers.phyloxml.PhyloXmlDataFormatException;
import org.forester.phylogeny.PhylogenyNode;
import org.forester.phylogeny.data.Accession;
import org.forester.archaeopteryx.Options.PHYLOGENY_GRAPHICS_TYPE;
import org.forester.archaeopteryx.phylogeny.data.RenderableDomainArchitecture;
import org.forester.archaeopteryx.phylogeny.data.RenderableVector;
+import org.forester.archaeopteryx.tools.Blast;
+import org.forester.archaeopteryx.tools.ImageLoader;
import org.forester.io.parsers.phyloxml.PhyloXmlUtil;
import org.forester.phylogeny.Phylogeny;
import org.forester.phylogeny.PhylogenyMethods;
*
* @return a pointer to the phylogeny
*/
- final Phylogeny getPhylogeny() {
+ public final Phylogeny getPhylogeny() {
return _phylogeny;
}
setPreferredSize( new Dimension( x, y ) );
}
- final void setArrowCursor() {
+ public final void setArrowCursor() {
setCursor( ARROW_CURSOR );
repaint();
}
getMainPanel().setCutOrCopiedTree( cut_or_copied_tree );
}
- final void setEdited( final boolean edited ) {
+ public final void setEdited( final boolean edited ) {
_edited = edited;
}
* @param t
* an instance of a Phylogeny
*/
- final void setTree( final Phylogeny t ) {
+ public final void setTree( final Phylogeny t ) {
_nodes_in_preorder = null;
_phylogeny = t;
}
_urt_factor_ov = urt_factor_ov;
}
- final void setWaitCursor() {
+ public final void setWaitCursor() {
setCursor( WAIT_CURSOR );
repaint();
}
}
}
- synchronized void setImageMap( final Hashtable<String, BufferedImage> image_map ) {
+ public synchronized void setImageMap( final Hashtable<String, BufferedImage> image_map ) {
getMainPanel().setImageMap( image_map );
}
- synchronized Hashtable<String, BufferedImage> getImageMap() {
+ public synchronized Hashtable<String, BufferedImage> getImageMap() {
return getMainPanel().getImageMap();
}
}
import org.forester.util.DescriptiveStatistics;
import org.forester.util.ForesterUtil;
-final class Util {
+public final class Util {
private final static String[] AVAILABLE_FONT_FAMILIES_SORTED = GraphicsEnvironment.getLocalGraphicsEnvironment()
.getAvailableFontFamilyNames();
System.out.println( "[" + applet_name + "] > " + message );
}
- final static void printWarningMessage( final String name, final String message ) {
+ public final static void printWarningMessage( final String name, final String message ) {
System.out.println( "[" + name + "] > " + message );
}
// Contact: phylosoft @ gmail . com
// WWW: www.phylosoft.org/forester
-package org.forester.archaeopteryx;
+package org.forester.archaeopteryx.tools;
import java.net.UnknownHostException;
import java.util.SortedSet;
import javax.swing.JOptionPane;
import org.forester.analysis.AncestralTaxonomyInference;
+import org.forester.archaeopteryx.MainFrameApplication;
+import org.forester.archaeopteryx.TreePanel;
import org.forester.phylogeny.Phylogeny;
import org.forester.ws.uniprot.UniProtWsTools;
private final MainFrameApplication _mf;
private final TreePanel _treepanel;
- AncestralTaxonomyInferrer( final MainFrameApplication mf, final TreePanel treepanel, final Phylogeny phy ) {
+ public AncestralTaxonomyInferrer( final MainFrameApplication mf, final TreePanel treepanel, final Phylogeny phy ) {
_phy = phy;
_mf = mf;
_treepanel = treepanel;
// Contact: phylosoft @ gmail . com
// WWW: www.phylosoft.org/forester
-package org.forester.archaeopteryx;
+package org.forester.archaeopteryx.tools;
import java.io.IOException;
import java.util.Arrays;
public Blast() {
}
- void go( final String geneName ) {
+ public void go( final String geneName ) {
// Retrieve accession number list which has specified gene name from searchByXMLPath of ARSA. Please click here for details of ARSA.
/*target: Sequence length is between 300bp and 1000bp.
Feature key is CDS.
// Contact: phylosoft @ gmail . com
// WWW: www.phylosoft.org/forester
-package org.forester.archaeopteryx;
+package org.forester.archaeopteryx.tools;
import java.io.BufferedReader;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
+import org.forester.archaeopteryx.MainFrameApplication;
+import org.forester.archaeopteryx.TreePanel;
import org.forester.phylogeny.Phylogeny;
import org.forester.phylogeny.PhylogenyNode;
import org.forester.phylogeny.data.Accession;
import org.forester.phylogeny.iterators.PhylogenyNodeIterator;
import org.forester.util.ForesterUtil;
-public class MainPanelEdit implements Runnable {
+public class GoAnnotation implements Runnable {
private static final String SYMBOL = "Symbol";
private static final String ASPECT = "Aspect";
private final MainFrameApplication _mf;
private final TreePanel _treepanel;
- MainPanelEdit( final MainFrameApplication mf, final TreePanel treepanel, final Phylogeny phy ) {
+ public GoAnnotation( final MainFrameApplication mf, final TreePanel treepanel, final Phylogeny phy ) {
_phy = phy;
_mf = mf;
_treepanel = treepanel;
// Contact: phylosoft @ gmail . com
// WWW: www.phylosoft.org/forester
-package org.forester.archaeopteryx;
+package org.forester.archaeopteryx.tools;
import java.awt.image.BufferedImage;
import java.io.IOException;
import javax.imageio.ImageIO;
+import org.forester.archaeopteryx.Constants;
+import org.forester.archaeopteryx.TreePanel;
+import org.forester.archaeopteryx.Util;
import org.forester.phylogeny.PhylogenyNode;
import org.forester.phylogeny.data.Taxonomy;
import org.forester.phylogeny.data.Uri;
// Contact: phylosoft @ gmail . com
// WWW: www.phylosoft.org/forester
-package org.forester.archaeopteryx;
+package org.forester.archaeopteryx.tools;
import java.awt.Color;
import java.awt.FlowLayout;
import javax.swing.border.Border;
import javax.swing.border.LineBorder;
+import org.forester.archaeopteryx.MainFrameApplication;
+import org.forester.archaeopteryx.Util;
import org.forester.evoinference.distance.PairwiseDistanceCalculator.PWD_DISTANCE_METHOD;
import org.forester.sequence.Sequence;
import org.forester.util.BasicDescriptiveStatistics;
// Contact: phylosoft @ gmail . com
// WWW: www.phylosoft.org/forester
-package org.forester.archaeopteryx;
+package org.forester.archaeopteryx.tools;
import java.io.File;
+import org.forester.archaeopteryx.Configuration;
import org.forester.evoinference.distance.PairwiseDistanceCalculator.PWD_DISTANCE_METHOD;
import org.forester.msa.Mafft;
// Contact: phylosoft @ gmail . com
// WWW: www.phylosoft.org/forester
-package org.forester.archaeopteryx;
+package org.forester.archaeopteryx.tools;
import java.io.BufferedWriter;
import java.io.File;
import javax.swing.JOptionPane;
+import org.forester.archaeopteryx.MainFrameApplication;
import org.forester.evoinference.distance.NeighborJoining;
import org.forester.evoinference.distance.PairwiseDistanceCalculator;
import org.forester.evoinference.matrix.distance.BasicSymmetricalDistanceMatrix;
// Contact: phylosoft @ gmail . com
// WWW: www.phylosoft.org/forester
-package org.forester.archaeopteryx;
+package org.forester.archaeopteryx.tools;
import java.io.IOException;
import java.net.UnknownHostException;
import javax.swing.JOptionPane;
import org.forester.analysis.AncestralTaxonomyInference;
+import org.forester.archaeopteryx.MainFrameApplication;
+import org.forester.archaeopteryx.TreePanel;
import org.forester.phylogeny.Phylogeny;
import org.forester.ws.uniprot.UniProtWsTools;
private final MainFrameApplication _mf;
private final TreePanel _treepanel;
- TaxonomyDataObtainer( final MainFrameApplication mf, final TreePanel treepanel, final Phylogeny phy ) {
+ public TaxonomyDataObtainer( final MainFrameApplication mf, final TreePanel treepanel, final Phylogeny phy ) {
_phy = phy;
_mf = mf;
_treepanel = treepanel;
// Contact: phylosoft @ gmail . com
// WWW: www.phylosoft.org/forester
-package org.forester.archaeopteryx;
+package org.forester.archaeopteryx.tools;
import java.io.IOException;
import java.net.UnknownHostException;
import javax.swing.JOptionPane;
+import org.forester.archaeopteryx.MainFrameApplication;
+import org.forester.archaeopteryx.TreePanel;
import org.forester.phylogeny.Phylogeny;
import org.forester.phylogeny.PhylogenyNode;
import org.forester.phylogeny.data.Accession;
private final MainFrameApplication _mf;
private final TreePanel _treepanel;
- UniProtSequenceObtainer( final MainFrameApplication mf, final TreePanel treepanel, final Phylogeny phy ) {
+ public UniProtSequenceObtainer( final MainFrameApplication mf, final TreePanel treepanel, final Phylogeny phy ) {
_phy = phy;
_mf = mf;
_treepanel = treepanel;