dness" in input) {
    var er = input["expected-relatedness"]
    var found = new Map()
    for(i in er){
        var v = er[i] // v.value and v.pairs
        rel_pairs_value_2_rel.set(parseInt(i) + 1, v.value)
        for(j in v.pairs){
            rel_pairs.set(v.pairs[j][0] + "--" + v.pairs[j][1], parseInt(i)+1)
        }
    }
}


var layout_a = {
    autosize: true,
    xaxis: {
        title: jQuery("#plotax_select option:selected").text(),
    },
    yaxis: {
        title: jQuery("#plotay_select opt