How to find a Component's parent sgroup that is a Mixture

User bc3eb0a599

09-06-2015 21:54:45

Hi Support,


I need to get the parent/child relationship among components of a Molecule. I have a component (sgroup type 13) drawn within a Mixture bracket. When I tried to get childCompSgroup.getParentSgroup() it's NULL. It should be the Mixture Sgroup. This is not a problem when the parent is also a Component type Sgroup.


I also inspected the Bracket class to see if it have any parent/child relationship information. I didn't see anything related.


Is there a way to find out the parent/child relationship among all type of sgroups, including Mixture?


I use JChem lib version 15.6.1 on Linux.


 


Thanks for your help.


Tom


 

ChemAxon 2cd598e7ad

10-06-2015 07:50:54

Hi,


Can you please attach the molecule file that you are working with?


Regards, Domi

User bc3eb0a599

10-06-2015 14:48:05

Hi Domi,


I've attached the structure file.


Thanks,


Tom

ChemAxon 2cd598e7ad

15-06-2015 08:03:38

Hi Tom,


Sorry for the late answer. Regularily the child/parent relationships should be accessed by the methods you've mentioned. Therefore if they are not there then it is either intended or it is a bug of the drawing tool, or the molecule importer. Can you tell it how do you get this molecule object? Do you draw it? Do you get it from some file (sdf, mrv, smiles..)?


Thanks, Domi

User bc3eb0a599

17-06-2015 16:10:03

Domi,


One file was generated with ISIS Sketcher and the other was drawn with Marvin Sketcher.


I realize now that our company has a support team from ChemAxon for our current project and they also started looking into this issue. I'll stop posting further for this topic on the forum so that you don't waste your time working on the same issue.


Thanks for your help.


Tom