command.append(1 + pdbfnum);
command.append(".1} {");
command.append(1 + refStructure);
- command.append(".1} SUBSET {*.CA | *.P} ATOMS ");
+ // conformation=1 excludes alternate locations for CA (JAL-1757)
+ command.append(".1} SUBSET {(*.CA | *.P) and conformation=1} ATOMS ");
// form the matched pair strings
String sep = "";
public abstract class JalviewChimeraBinding extends AAStructureBindingModel
{
+ // Chimera clause to exclude alternate locations in atom selection
+ private static final String NO_ALTLOCS = "&~@.B-Z&~@.2-9";
private static final boolean debug = false;
// TODO: handle sub-models
command.append(selcom[pdbfnum]);
command.append("@" + atomSpec[pdbfnum]);
+ // JAL-1757 exclude alternative CA locations
+ command.append(NO_ALTLOCS);
command.append(" #" + refStructure /* +".1" */);
command.append(selcom[refStructure]);
command.append("@" + atomSpec[refStructure]);
+ command.append(NO_ALTLOCS);
}
if (selectioncom.length() > 0)
{