From: amwaterhouse Date: Tue, 8 Feb 2005 18:39:50 +0000 (+0000) Subject: new class X-Git-Tag: Release_2_0~691 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=42f46263655185b0a436356c37295ec82d091dce;p=jalview.git new class --- 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()); + } + +}