bsxplorer.Clusters.ClusterMany.cut_tree

ClusterMany.cut_tree(dist_method='euclidean', clust_method='average', cut_height_q=0.99, **kwargs)[source]

KMeans clustering on sample regions. Clustering is being made with dynamicTreeCut.cutreeHybrid.

Parameters:
  • dist_method – Distances calculation metric

  • clust_method – Hierarchical clustering method

  • cut_height_q – Quantile of leaves height to be cut.

  • kwargs – See dynamicTreeCut.

Return type:

ClusterPlot