tooluniverse.tools.PubChem_search_compounds_by_substructure moduleΒΆ

PubChem_search_compounds_by_substructure

Search for all CIDs in PubChem that contain the given substructure (SMILES).

tooluniverse.tools.PubChem_search_compounds_by_substructure.PubChem_search_compounds_by_substructure(smiles, *, stream_callback=None, use_cache=False, validate=True)[source]ΒΆ

Search for all CIDs in PubChem that contain the given substructure (SMILES).

Parameters:
  • smiles (str) – SMILES of substructure (e.g., β€œc1ccccc1” corresponds to benzene ring).

  • stream_callback (Callable, optional) – Callback for streaming output

  • use_cache (bool, default False) – Enable caching

  • validate (bool, default True) – Validate parameters

Return type:

Any