Optional

Functions that are kept out of the main modules to hold down the dependency burden, or because they are worked examples rather than recommended practice.

get_t_sne_clusters(smiles_list, n_clusters=7)[source]

Cluster a list of SMILES strings using a PCA pre-reduction, a two-dimensional t-SNE embedding, and agglomerative clustering. From Scaffold Splits Overestimate Virtual Screening Performance https://arxiv.org/abs/2406.00873

Parameters:
  • smiles_list (List[str]) – List of SMILES strings

  • n_clusters (int) – The number of clusters to use for clustering

Return type:

ndarray

Returns:

Array of cluster labels corresponding to each SMILES string in the input list.

get_umap_clusters(smiles_list, n_clusters=7)

Cluster a list of SMILES strings using a PCA pre-reduction, a two-dimensional t-SNE embedding, and agglomerative clustering. From Scaffold Splits Overestimate Virtual Screening Performance https://arxiv.org/abs/2406.00873

Parameters:
  • smiles_list (List[str]) – List of SMILES strings

  • n_clusters (int) – The number of clusters to use for clustering

Return type:

ndarray

Returns:

Array of cluster labels corresponding to each SMILES string in the input list.