ChemPal Documentation - v0.0.0
    Preparing search index...

    Function executeSDQSearch

    • Query the SDQ agent for a compound name from a synonym.

      Parameters

      • cmpdsynonym: SDQAgentQuery

        The synonym to query the SDQ agent for.

      Returns Promise<undefined | SDQResultItem[]>

      The compound name from the SDQ agent.

      const cmpd = await executeSDQSearch({
      where: { cmpdsynonym: "2-Acetoxybenzenecarboxylic acid" },
      select: ["cid", "cmpdname"],
      limit: 1,
      });
      console.log(cmpd);
      // Outputs: Aspirin