+ SequenceI[] st= pickbestMatches(candName, matches);
+ return st==null || st.length==0 ? null : st[0];
+ }
+ /**
+ * returns the closest SequenceI in matches to SeqIdName and returns all the
+ * matches to the names hash.
+ *
+ * @param candName
+ * SeqIdName
+ * @param matches
+ * Vector of SequenceI objects
+ * @return Object[] { SequenceI closest SequenceI to SeqIdName, SequenceI[] ties }
+ */
+ private SequenceI[] pickbestMatches(SeqIdName candName, Vector matches)
+ {
+ ArrayList best=new ArrayList();