How do I select diverse subset of K compounds from a larger set?
22 views
Skip to first unread message
Andrew Orry
unread,
Oct 26, 2021, 7:35:28 PM10/26/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to MolSoft ICM Knowledge Base
Q: How do I select diverse subset of K compounds from a larger set?
A: The following code will select K representatives (centroids) from
table 't' and copy them to table 't_subset'
#
K = 1000 # set to number of representatives you want to extract
# perform clustering
make tree t full "UPGMA" matrix split="cl"
#
I_out = Split( t.cluster K ) # split into K clusters
I_out = Index( t.cluster center r_out ) # uses r_out from the above