*/
public static boolean deuniquify(Hashtable map, SequenceI[] sequences)
{
- jalview.analysis.SequenceIdMatcher matcher = new SequenceIdMatcher(
+ return deuniquify(map, sequences, true);
+ }
+ /**
+ * recover unsafe sequence names and original properties for a sequence
+ * set using a map generated by @see uniquify(sequences,true)
+ * @param map Hashtable
+ * @param sequences SequenceI[]
+ * @param quiet when false, don't complain about sequences without any data in the map.
+ * @return boolean
+ */
+ public static boolean deuniquify(Hashtable map, SequenceI[] sequences, boolean quiet)
+ {
+ jalview.analysis.SequenceIdMatcher matcher = new SequenceIdMatcher(
sequences);
SequenceI msq = null;
Enumeration keys = map.keys();
}
else
{
- System.err.println("Can't find '" + ( (String) key) +
+ if (!quiet)
+ {
+ System.err.println("Can't find '" + ( (String) key) +
"' in uniquified alignment");
+ }
}
}
}
- if (unmatched.size() > 0)
+ if (unmatched.size() > 0 && !quiet)
{
System.err.println("Did not find matches for :");
for (Enumeration i = unmatched.elements(); i.hasMoreElements();