 z: get_heat_data(input, metric_b),
    type: 'heatmap',
    x: input.samples,
    colorscale: colorscaleValue,
    y: input.samples,
    zsmooth: false,
}

var layout_b = {
    title: jQuery("#plotb_select option:selected").text(),
    autosize: true,
    xaxis: {
        tickangle: 90,
    },
    hovermode: 'closest',
    shapes: [],
}

// add the rectangles around each cluster.
var coff = 0
input.clusters.forEach(function(cluster) {
    if(cluster.length == 1) { 
        coff += 1
        return 
    }
 