OESameSubSearchScreenTypes

Attention

This API is currently available in C++ and Python.

bool OESameSubSearchScreenTypes(const OESubSearchScreen &,
                                const OESubSearchScreen &)

Returns whether or not the types (OESubSearchScreenTypeBase) of the two OESubSearchScreen objects are the same.

Example:

from openeye import oechem

qmol = oechem.OEQMol()
oechem.OEParseSmarts(qmol, "c1cc[o,n,s]c1")
qscreen = oechem.OESubSearchScreen()
oechem.OEMakeSubSearchQueryScreen(qscreen, qmol, oechem.OESubSearchScreenType_SMARTS)

tmol = oechem.OEGraphMol()
oechem.OEParseSmiles(tmol, "c1ccoc1")
tscreen = oechem.OESubSearchScreen()
oechem.OEMakeSubSearchTargetScreen(tscreen, tmol, oechem.OESubSearchScreenType_MDL)

if oechem.OESameSubSearchScreenTypes(qscreen, tscreen):
    print("same screen types")
else:
    print("different screen types")

Warning

Screens with different types should never be compared with each other since they have been generated with different algorithms, they might have different lengths and their bits can represent different molecular features.

See also