POST /v1/sync/similarity
Compare two molecules — Computes Tanimoto, Dice and cosine similarity between two SMILES strings using Morgan, RDKit or MACCS fingerprints.
ivy_ API key (Authorization: Bearer ivy_…), a signed-in session token (Authorization: Bearer …) or the session cookie (browser sessions). See Authentication.Computes Tanimoto, Dice and cosine similarity between two SMILES strings using Morgan, RDKit or MACCS fingerprints. Scores run from 0 (different) to 1 (identical). An invalid SMILES returns HTTP 200 with success: false.
Request
Request body
Morgan fingerprint radius.
Responses
200 OK
success: a failed calculation still returns HTTP 200.Response shape:
Calculation output. For validate-smiles: results (each with input, valid, canonical, num_atoms, num_heavy_atoms or error) and total. For similarity: smiles1, smiles2, fingerprint_type, tanimoto, dice and cosine. For admet-quick: smiles plus the ADMET estimates. For molecular-properties: the property fields, plus admet when requested.
Present when success is false.
400 Bad Request
Response shape: object
401 Unauthorized
Response shape: object
422 Unprocessable Entity
Response shape: object
429 Too Many Requests
Response shape: object
502 Bad Gateway
Response shape: object
Was this page helpful?