       if cell.value != -1
         cell.value = 0.5 if cell.value > 0.5
         cell.value = -4*(log2(cell.value)+1)/12*zmax
-    cell.value = zmax if cell.value > zmax
-  )
+    cell.value = zmax if cell.value > zmax)
+
 
   # the pixels
   cells = svg.selectAll(".cell")

          if d.row is d.col
            markers[d.row].marker
          else
            "#{markers[d.row].marker} : #{markers[d.col].marker}    value = #{onedigit(d.value)}"
        )
        .attr("id", "tooltip")
        .style("font-family", "sans-serif")

  # scale for pixel color (orange indicates missing values)
  zscale = d3.scale.linear().domain([-1, 0, zmax]).range(["orange", "white", "blue"])

  # create matrix of rec fracs and LODs
  for i in [0...nmar]
    matrix[i] = d3.range(nmar).map((j) -> {rf: null, lod:null})

  rf.forEach((cell) ->
    if cell.row > cell.col
      matrix[cell.row][cell.col].rf = cell.value
      matrix[cell.col][cell.row].rf = cell.value
    else if cell.row < cell.col
      matrix[cell.row][cell.col].lod = cell.value
      matrix[cell.col][cell.row].lod = cell.value)

  # plug in -1 for nulls
  rf.forEach((cell) -> cell.value = -1 if cell.value is null)

