Hello there, Hope you are doing very well. I would like to compute tanimoto similarity using obspectrophore fingerprint. I have found a formula on the net for the tanimoto similarity: def tanimoto(list1, list2): #list1 and list2 #spectrophore fingerprint intersection = [common_item for common_item in list1 if common_item in list2] return float(len(intersection))/(len(list1) + len(list2) - len(intersection))
For now, I tested this using the same compound as input and the result is 1. Just wanted to confirm this is the right formula for Tanimoto coefficient for spectrophore. Thanks Best regards -- Bakary N’tji DIALLO PhD Student (Bioinformatics) <http://linkedin.com/in/bakarydiallo>, Research Unit in Bioinformatics (RUBi) <https://rubi.ru.ac.za/> Mail: diallobaka...@gmail.com | Skype: diallobakary4 Tel: +27798233845 | +223 74 56 57 22 | +223 97 39 77 14
_______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss