public SequenceFeatureFetcher(AlignmentI align, AlignmentPanel ap)\r
{\r
unknownSequences = new ArrayList();\r
- this.align = align;\r
+ this.align = align.getDataset();\r
this.ap = ap;\r
\r
Thread thread = new Thread(this);\r
"xml", null);\r
\r
\r
+\r
if (file != null)\r
{\r
ReadUniprotFile(file, align, ids);\r
\r
if (unknownSequences.size() > 0)\r
{\r
+ int reply = javax.swing.JOptionPane.showInternalConfirmDialog(\r
+ Desktop.desktop, "Couldn't find a match for "+unknownSequences.size()+" sequences."\r
+ +"\nPerform blast for unknown sequences?",\r
+ "Blast for Unidentified Sequences",\r
+ javax.swing.JOptionPane.YES_NO_OPTION, javax.swing.JOptionPane.QUESTION_MESSAGE);\r
+\r
+ if(reply == javax.swing.JOptionPane.YES_OPTION)\r
new WSWUBlastClient(ap, align, unknownSequences);\r
}\r
else\r
for (i = 0; i < iSize; i++)\r
{\r
entry = (UniprotEntry) entries.elementAt(i);\r
- String idmatch = entry.getAccession();\r
+ String idmatch = entry.getAccession().elementAt(0).toString();\r
sequence = align.findName(idmatch);\r
\r
if (sequence == null)\r
{\r
//Sequence maybe Name, not Accession\r
- idmatch = entry.getName();\r
+\r
+ idmatch = entry.getName().elementAt(0).toString();;\r
sequence = align.findName(idmatch);\r
}\r
\r
if (sequence == null)\r
{\r
+ System.out.println("not found");\r
continue;\r
}\r
\r