How to fuse() with good spacing but no reorientation?

User f05f6b8c05

09-04-2012 11:47:57

Hi,


If I fuse() two molecules and then run a standardizer "clean" on the result, the fused structures are very close together .. but if I run a standardizer "clean:full" on the result, the fused structures show better spacing but they are now reoriented.  Is there a way to increase the spacing between fused moecules without reorienting the molecules?


Thanks for any advice,


Andrew

ChemAxon e08c317633

10-04-2012 19:14:58

Hi,


Do you need a Java API solution to increase the spacing betweent the two fragments of the molecule?


Zsolt

User f05f6b8c05

10-04-2012 21:44:07

Yes .. a Java API solution for increasing the spacing between any number of molecules that have been fuse()'d into the same molecule .. that would be very helpful!


Thanks.

ChemAxon 25dcd765a3

11-04-2012 07:10:12

Hi,


I think arrangeMolecules(..) is the API call you need. Fragment your molecule using molecule.findFrags(SelectionMolecule.class, type) then call arrangeMolecules on the fragments.


Eg:



MoleculeGraph[] frags = mol.findFrags(
                        SelectionMolecule.class,
                        MoleculeGraph.FRAG_KEEPING_MULTICENTERS);

CleanUtil.arrangeMolecules(frags, 2, -1);

I hope this helps.

User f05f6b8c05

14-04-2012 18:43:05

Works perfectly!  Thanks very much -- Andrew