electroshape is not printing the similarity score

10 views
Skip to first unread message

Scott Bembenek

unread,
Nov 10, 2020, 9:57:07 PM11/10/20
to Open Drug Discovery Toolkit Community
I'm using the command line version of ODDT to calculate the electroshape score as:

oddt_cli database.sdf --similarity electroshape --cutoff 0.8 --query query.sdf -O scored.sdf

And while it seems to work correctly, it does not print out the actual similarity score. 

please advise.

Scott

Maciek Wójcikowski

unread,
Nov 12, 2020, 3:41:48 PM11/12/20
to Scott Bembenek, Open Drug Discovery Toolkit Community
Hi Scott,

Unfortunately printing of the similarities was never a feature, since the CLI was intended to be used for large datasets. To get them you'd have to create a short script to print all of them in a loop. Here is a simplistic example on how it should look like https://oddt.readthedocs.io/en/latest/index.html?highlight=api#molecular-shape-comparison

results = []
query_shape = usr(query)
for mol in database:
mol_shape = usr(mol)
similarity = usr_similarity(query_shape, mol_shape)
if similarity > 0.7:
results.append(mol)
print(similarity)
Let me know if that works for you.

Best,
Maciej

----
Pozdrawiam,  |  Best regards,
Maciek Wójcikowski
mac...@wojcikowski.pl


--
You received this message because you are subscribed to the Google Groups "Open Drug Discovery Toolkit Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to oddt+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/oddt/cf8e021a-37da-4f37-9861-75979f7cfb3cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages