AutoMapper.guessMappingStyle() alternative

User 366e966a35

19-12-2013 12:22:28

Hello!


    chemaxon.marvin.modules.AutoMapper class is declared as deprecated, but there is no 1-on-1 mapping between it and its substitute, com.chemaxon.mapper.AutoMapper class. For eample, what method / piece of code should be used instead AutoMapper.guessMappingStyle() method?


Thank you.

ChemAxon e3b68ad0ae

19-12-2013 13:22:46

Hi Leonid,


I informed my colleagues about your question.


They will contact you shortly.


Best wishes,


Ágnes

ChemAxon e08c317633

02-01-2014 19:29:25

We cleaned up the AutoMapper API quite a bit, and during this cleanup all unnecessary options and the methods which do not belong directly to automatic mapping were removed. The mentioned guessMappingStyle() falls to the later category, it's a utility method and is not required for mapping. We can collect the utility methods in a separate class in com.chemaxon.mapper package. 


Is there any other method you miss from the new com.chemaxon.mapper.AutoMapper class

User 366e966a35

10-01-2014 09:26:18

Hello Zsolt,


    Thank you for your answer. For the moment it is the only method I need but found missing.

ChemAxon e08c317633

17-01-2014 10:34:56

We reviewed what guessMappingStyle() method does, and in its current form we do not find it useful, mainly because of these steps:


     * 2. Remove existing maps from the clone the input molecule
* 3. Automap the clone (full)
* 4. Compare the original mapping to the mapping of the clone (pairwise):
* 4.1 There is at least a non matching pair -> UNKNOWN mapping

Could you describe how you use the guessMappingStyle() method?