Added duplicatePartitions/allPartitions distinction, heatmap distance