I'm trying to use the ADT script prepare_ligand4.py to convert a mol2 file while preserving the charges. I get the errors below. The script converts the file successfully if I leave out the -C option. I have attached the file in question.
Is this a bug?
Code:
Traceback (most recent call last):
File "/usr/people/douglas/programs/mgltools_i86Linux2_1.5.4/MGLToolsPckgs/AutoDockTools/Utilities24/prepare_ligand4.py", line 195, in <module>
attach_nonbonded_fragments=attach_nonbonded_fragments)
File "/usr/people/douglas/programs/mgltools_i86Linux2_1.5.4/MGLToolsPckgs/Updates/tested/AutoDockTools/MoleculePreparation.py", line 952, in __init__
detect_bonds_between_cycles=detect_bonds_between_cycles)
File "/usr/people/douglas/programs/mgltools_i86Linux2_1.5.4/MGLToolsPckgs/Updates/tested/AutoDockTools/MoleculePreparation.py", line 702, in __init__
delete_single_nonstd_residues=False)
File "/usr/people/douglas/programs/mgltools_i86Linux2_1.5.4/MGLToolsPckgs/Updates/tested/AutoDockTools/MoleculePreparation.py", line 140, in __init__
self.addCharges(mol, charges_to_add)
File "/usr/people/douglas/programs/mgltools_i86Linux2_1.5.4/MGLToolsPckgs/Updates/tested/AutoDockTools/MoleculePreparation.py", line 212, in addCharges
mol.chains.residues.atoms))
File "/usr/people/douglas/programs/mgltools_i86Linux2_1.5.4/MGLToolsPckgs/Updates/tested/AutoDockTools/MoleculePreparation.py", line 211, in <lambda>
len_zero_charges = len(filter(lambda x: x.charge==0,
File "/usr/people/douglas/programs/mgltools_i86Linux2_1.5.4/MGLToolsPckgs/Updates/tested/MolKit/molecule.py", line 387, in __getattr__
return self._charges[self.chargeSet]
KeyError: None