From 42f46263655185b0a436356c37295ec82d091dce Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 8 Feb 2005 18:39:50 +0000 Subject: [PATCH] new class --- src/jalview/io/WSWUBlastClient.java | 119 +++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100755 src/jalview/io/WSWUBlastClient.java diff --git a/src/jalview/io/WSWUBlastClient.java b/src/jalview/io/WSWUBlastClient.java new file mode 100755 index 0000000..ed29f89 --- /dev/null +++ b/src/jalview/io/WSWUBlastClient.java @@ -0,0 +1,119 @@ +package jalview.io; + +import org.apache.axis.client.*; +import javax.xml.namespace.QName; +import java.util.*; +import jalview.datamodel.*; +import jalview.gui.*; +import javax.swing.*; + +public class WSWUBlastClient +{ + CutAndPasteTransfer cap = new CutAndPasteTransfer(false); + + public WSWUBlastClient(AlignmentI al, ArrayList ids) + { + JInternalFrame frame = new JInternalFrame(); + cap.formatForOutput(); + frame.setContentPane(cap); + cap.setText("To display sequence features an exact Uniprot id with 100% sequence identity match must be entered." + +"\nIn order to display these features, try changing the names of your sequences to the ids suggested below."); + Desktop.addInternalFrame(frame, "BLASTing for unidentified sequences ", 800,300); + + for(int i=0; i")==-1) + { + data = st.nextToken(); + if(data.indexOf("")>-1) + { + int value = Integer.parseInt( data.substring(data.indexOf("")+10, data.indexOf(""))); + if(value>=maxFound) + { + maxFound = value; + buffer.append(" "+ id2 + " " + value+"%; "); + } + } + } + + } + + + } + + cap.setText(cap.getText()+buffer.toString()); + } + +} -- 1.7.10.2