     result[c].push(v)
        }
    }
    return result
}

function get_xy_samples(input) {
    var result = []
    for(i = 0; i < input.n_samples - 1; i++) {
        for(j=i+1; j < input.n_samples; j++){
            // TODO: might need to flip these.
            result.push(input.samples[i] + " <> " + input.samples[j])
        }
    }
    return result
}

var colors = ['#377eb8bb', '#e41a1cbb', '#4daf4a', '#984ea3', '#ff7f00', '#ffff33', '#a65628', '#f781bf', '#999999', '#e41a1c', '#377eb8', '#4daf4a']

f