Function compute_clusters

clusters the sequences based on feature vectors using

two methods (affine propagation and k-means)

The function compute clusters based on sequence similarity defined by the feature vector. Two unsupervised clustering algorithms are used, affine propagation and k-means. The number of clusters for k-means is set to be the same as for affine propagation. Number of clusters for affine propagation is controled by the config.ap_clustering_factor variable. The config.ap_clustering_factor should be set such that small pertubation of this variable does not change the number of clusters (significantly).

Input:

Output:

Clusters structure: