+ // get kind of temperature factor annotation
+ AlignmentAnnotation.TFType tempfacType = null;
+ if ((m.get(Arg.NOTEMPFAC) == null
+ || !m.get(Arg.NOTEMPFAC).getBoolean())
+ && m.get(Arg.TEMPFAC) != null)
+ {
+ try
+ {
+ tempfacType = AlignmentAnnotation.TFType
+ .valueOf(m.get(Arg.TEMPFAC).getValue()
+ .toUpperCase(Locale.ROOT));
+ Console.debug("Obtained Temperature Factor type of '"
+ + tempfacType + "'");
+ } catch (IllegalArgumentException e)
+ {
+ StringBuilder sb = new StringBuilder().append("Cannot set --")
+ .append(Arg.TEMPFAC.getName()).append(" to '")
+ .append(tempfacType)
+ .append("', ignoring. Valid values are: ");
+ Iterator<AlignmentAnnotation.TFType> it = Arrays
+ .stream(AlignmentAnnotation.TFType.values())
+ .iterator();
+ while (it.hasNext())
+ {
+ sb.append(it.next().toString().toLowerCase(Locale.ROOT));
+ if (it.hasNext())
+ sb.append(", ");
+ }
+ Console.warn(sb.toString());
+ }
+ }
+