chemaxon.search.molsearch
Supported molecule search types
Search hit result object
List of atom indexes in the target molecule that were matched by the query molecule
Colored target molecule showing the matched atoms and bonds. None if return_colored_hit was False
Search object to perform molecule searches
The configuration string of the standardizer to be applied before the search, or the Standardizer object. Default is general aromatization, if None or empty string is provided, no standardization will be applied
Molecule searching.
Parameters
- query_mol:
Molecule- TheMoleculeto match - target_mol:
Molecule- The targetMoleculeto which thequery_molis being matched - return_colored_hit:
bool- If true, colored target is returned showing the matched atoms and bonds. Default is False.
Returns
Search hit, or None if there was no match.
Molecule searching in list.
Get a list of SearchHits or None(s).
Parameters
- query_mol:
Molecule- TheMoleculeto search with - target_mol_list:
list[Molecule]- The list ofMolecules to match against - return_colored_hit:
bool-If true, colored targets are returned showing the matched atoms and bonds. Default is False.
Raises
- RuntimeError: In case of exception (unrecoverable errors) the function will exit and stop the searching.
Returns
list[Molecule]- List ofSearchHit(s) in the same order as the input list of targets (target_mol_list). If no hit was found on a given target, None is returned on the corresponding index.