}
}
}
- StringBuffer selcom[] = new StringBuffer[files.length];
+ String[] selcom = new String[files.length];
// generate select statements to select regions to superimpose structures
{
for (int pdbfnum = 0; pdbfnum < files.length; pdbfnum++)
String chainCd = targetC[pdbfnum];
int lpos = -1;
boolean run = false;
- StringBuffer molsel = (selcom[pdbfnum] = new StringBuffer());
+ StringBuffer molsel = new StringBuffer();
molsel.append("{");
for (int r = 0; r < matched.length; r++)
{
molsel.append(chainCd);
molsel.append("}");
}
+ selcom[pdbfnum] = molsel.toString();
selectioncom.append("((");
- selectioncom.append(molsel.subSequence(1, molsel.length()-1));
+ selectioncom.append(selcom[pdbfnum].substring(1, selcom[pdbfnum].length()-1));
selectioncom.append(" )& ");
selectioncom.append(pdbfnum+1);
selectioncom.append(".1)");