Structures are first aligned (best fit) to only account for internal degrees of freedom (no translation and rotation) in the distance metric. The representative of each cluster is defined as the structure with the lowest average RMSD to all the structures in the cluster (centroid). Clustering was performed with the open source hclust library written in the Crystal language.