You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print ('Ten molecules from second largest cluster:')
# Draw moleculesDraw.MolsToGridImage([mols[i][0] foriinclusters[1][:10]],
legends=[mols[i][1] foriinclusters[1][:10]],
molsPerRow=5)
However, the clusters returned by Butina.ClusterData(distance_matr,len(fps),cutoff,isDistData=True) are not sorted by default, i.e. we cannot guarantee that clusters[1] is indeed the second largest cluster.
In the talktorial, it does happen that (at least) the first two clusters are correctly ordered, but when I was using a different original target, the second cluster only had one element, while others had more. Anyway, this is easily checked by just listing the lens of the clusters. Moreover, the docs do not claim that they are ordered.
The text was updated successfully, but these errors were encountered:
Cell 17:
However, the clusters returned by
Butina.ClusterData(distance_matr,len(fps),cutoff,isDistData=True)
are not sorted by default, i.e. we cannot guarantee thatclusters[1]
is indeed the second largest cluster.In the talktorial, it does happen that (at least) the first two clusters are correctly ordered, but when I was using a different original target, the second cluster only had one element, while others had more. Anyway, this is easily checked by just listing the
len
s of the clusters. Moreover, the docs do not claim that they are ordered.The text was updated successfully, but these errors were encountered: