}
return -1;
}
+
+ /**
+ * Queries Chimera for its list of residue attributes and returns their names
+ *
+ * @return
+ */
+ public List<String> getResidueAttributes()
+ {
+ List<String> result = new ArrayList<String>();
+ List<String> atts = sendChimeraCommand("list resattr", true);
+ for (String att : atts)
+ {
+ /*
+ * expect lines like "resattr chi1" - we just one the second bit
+ */
+ String[] tokens = att.split(" ");
+ result.add(tokens[tokens.length - 1]);
+ }
+ return result;
+ }
}