Separated the clustering task from heatmap panel to avoid deadlocks