User da8da0ed54
23-10-2012 08:43:53
I've been trying to use the MarvinBeans Java code to perform a simple operation on two molecules, where the smaller molecule is removed from the larger one, and the remaining fragments are output as a Molecule graph. (Basically, deleting the common parts of both, and showing the difference).
I currently do this by recording the bond indexes for the smaller molecule, and then performing running Molecule.removeBond for each on the larger molecule, cleaning up the remaining fragments by looking for any atom only connected to hydrogens. The problem I have is that sometimes the fragment left fits that bill and is cleaned away.
Does anyone know of a cleaner method for doing this that will prove more reliable?
I currently do this by recording the bond indexes for the smaller molecule, and then performing running Molecule.removeBond for each on the larger molecule, cleaning up the remaining fragments by looking for any atom only connected to hydrogens. The problem I have is that sometimes the fragment left fits that bill and is cleaned away.
Does anyone know of a cleaner method for doing this that will prove more reliable?