/*
* Set the HEM residue external connection bond by hand since Mol2
* does not contain that information.
*/
Residue hemeResidue = lib.getResidueByName("HEM");
Atom connectionAtom = hemeResidue.getAtoms().get(27);
hemeResidue.appendExternalBond(connectionAtom);
// Load CYP residue information
lib.addFromMol2(cyp);
Residue cypResidue = lib.getResidueByName("CYP");
Atom connectionAtomN = cypResidue.getAtoms().get(0);
Atom connectionAtomC = cypResidue.getAtoms().get(8);
Atom connectionAtomS = cypResidue.getAtoms().get(7);
cypResidue.appendExternalBond(connectionAtomN);
cypResidue.appendExternalBond(connectionAtomC);
cypResidue.appendExternalBond(connectionAtomS);
} catch (IOException e) {
e.printStackTrace();
}