The Cambridge Crystallographic Data Centre (CCDC). The CCDC websites use cookies. By continuing to browse the site you are agreeing to our use of cookies. For more details about cookies and how to manage them, see our cookie policy.
Hi, I would like to remove solvents and other interacting molecules from Molecule objects as to only select the main compound. Is there a good way to do this with the Python API?
Hi Ryan,
the simplest way to do this is to use the attribute 'heaviest_component'. This will work as long as the solvent molecules have molecular weights lower than that of the component of interest.
All discrete components of the molecule are accessible via the attribute 'components'. These will be sorted by molecular weight, so can be inspected to find the structure of interest.
Hope this is clear and helpful.
Best wishes
Richard
You must be signed in to post in this forum.