Skip to content

Question about fingerprints of stereoisomers #72

Description

@BJWiley233

Hi,

I have question about calculating e3fp.fingerprint.metrics.tanimoto coefficients of stereoisomers. I have made 50 conformers for following molecules with hydrogens. There are some locations in the matrix created from call to tanimoto where the coefficient is 1.0. I am wondering why this makes sense as they are not the same molecule?

smi='C1C[C@@H]2CNCCN2C1'
mol = Chem.MolFromSmiles(smi, sanitize=True)
molh = Chem.AddHs(mol)
molh.SetProp('_Name', smi)
cmol = AllChem.EmbedMultipleConfs(molh, numConfs=50)
d=fprints_dict_from_mol(molh, bits=2048, first=50, stereo=True)[5]
db=FingerprintDatabase(fp_type=Fingerprint, name="TestDB", level=5)
db.add_fingerprints(d)

smi2='C1C[C@H]2CNCCN2C1'
mol2 = Chem.MolFromSmiles(smi2, sanitize=True)
molh2 = Chem.AddHs(mol2)
molh2.SetProp('_Name', smi2)
cmol2 = AllChem.EmbedMultipleConfs(molh2, numConfs=50)
d2=fprints_dict_from_mol(molh2, bits=2048, first=50, stereo=True)[5]
db2=FingerprintDatabase(fp_type=Fingerprint, name="TestDB", level=5)
db2.add_fingerprints(d2)
tan=tanimoto(db, db2)
np.where(tan==1)
>>> (array([ 0,  0, 13, 13, 14, 14, 16, 32, 32, 34]),
 array([30, 32, 30, 32, 30, 32, 40, 30, 32, 40]))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions