in progress
authorcmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Tue, 19 Apr 2011 02:48:19 +0000 (02:48 +0000)
committercmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Tue, 19 Apr 2011 02:48:19 +0000 (02:48 +0000)
forester/java/src/org/forester/archaeopteryx/TreePanel.java
forester/java/src/org/forester/archaeopteryx/UniProtSequenceObtainer.java

index c01fb48..e1bcfb7 100644 (file)
@@ -3344,6 +3344,17 @@ public final class TreePanel extends JPanel implements ActionListener, MouseWhee
                 if ( getControlPanel().isShowTaxonomyCode() && ( PhylogenyMethods.getSpecies( node ).length() > 0 ) ) {
                     x += getTreeFontSet()._fm_large_italic.stringWidth( PhylogenyMethods.getSpecies( node ) + " " );
                 }
+                if ( getControlPanel().isShowGeneNames() ) {
+                    x += getTreeFontSet()._fm_large.stringWidth( node.getNodeData().getSequence().getName() + " " );
+                }
+                if ( getControlPanel().isShowGeneSymbols() ) {
+                    x += getTreeFontSet()._fm_large.stringWidth( node.getNodeData().getSequence().getSymbol() + " " );
+                }
+                if ( getControlPanel().isShowSequenceAcc() ) {
+                    x += getTreeFontSet()._fm_large.stringWidth( node.getNodeData().getSequence().getAccession()
+                            .toString()
+                            + " " );
+                }
                 if ( getControlPanel().isShowNodeNames() && ( node.getName().length() > 0 ) ) {
                     x += getTreeFontSet()._fm_large.stringWidth( node.getName() + " " );
                 }
index 4751335..fa5ae63 100644 (file)
@@ -154,6 +154,12 @@ public class UniProtSequenceObtainer implements Runnable {
                 if ( query.indexOf( '/' ) > 0 ) {
                     query = query.substring( 0, query.indexOf( '/' ) );
                 }
+                if ( query.indexOf( '.' ) > 0 ) {
+                    query = query.substring( 0, query.indexOf( '.' ) );
+                }
+                if ( query.indexOf( '_' ) > 0 ) {
+                    query = query.substring( 0, query.indexOf( '_' ) );
+                }
                 final UniProtEntry upe = obtainUniProtEntry( query );
                 if ( upe != null ) {
                     final Sequence seq = new Sequence();