anchor.diff:      }
       
       if (n>1) {
  -        setCaseIndicesAndLabels();
           plotCaseLabel('.case-label-header');
           $("#clinical_table").append("<tr><td><a href=\"study.do?cancer_study_id="+
                   cancerStudyId+"\">"+cancerStudyName+"</a></td><td></td></tr>");
  
positive.code:         } else {
              row += "<svg width='12' height='12' class='case-label-header' alt='"+caseId+"'></svg>";
              
              var state = guessClinicalData(clinicalData, ["tumor_type"]);
              mapCaseColor[caseId] = getCaseColor(state);
  
              var stateInfo = formatStateInfo(clinicalData);
              if (stateInfo) row +="&nbsp;"+stateInfo;
          }
  
negative.code: 
  function outputClinicalData() {
      $("#clinical_div").append("<table id='clinical_table' width='100%'></table>");
      var n=caseIds.length;
      
      // set mapCaseColor
      for (var i=0; i<n; i++) {
          var caseId = caseIds[i];
          var clinicalData = clinicalDataMap[caseId];
          var state = guessClinicalData(clinicalData, ["tumor_type"]);
          mapCaseColor[caseId] = getCaseColor(state);
      }
      
      // reorder based on color
      var colors = {black:1, orange:2, red:3};
      caseIds.sort(function(c1, c2){
          var ret = colors[mapCaseColor[c1]]-colors[mapCaseColor[c2]];
          if (ret===0) return c1<c2?-1:1;
          return ret;
      });
  
      // set labels
      var mapColorCases = {};
      caseIds.forEach(function (caseId) {
          var color = mapCaseColor[caseId];
          if (!(color in mapColorCases)) mapColorCases[color] = [];
          mapColorCases[color].push(caseId);
      });
      for (var color in mapColorCases) {
          var cases = mapColorCases[color];
          var len = cases.length;
          if (len===1) {
              mapCaseLabels[cases[0]]='';
          } else {
              for (var i=0; i<len; i++){
                  var _case = cases[i];
                  mapCaseLabels[_case] = i+1;
              };
          }
      }
          
      // output
      for (var i=0; i<n; i++) {
          var caseId = caseIds[i];
          var clinicalData = clinicalDataMap[caseId];
  