mkt.databases.chembl.return_chembl_id

mkt.databases.chembl.return_chembl_id(drug: str)[source]

Return the ChEMBL ID for a given drug name.

Parameters:

drug (str) – The name of the drug to search for in ChEMBL.

Returns:

A tuple containing the ChEMBL ID and the source of the ID (exact, preferred, or search);

if no ID is found, returns (None, None).

Return type:

tuple