code: def up_threshold(x, s, p):
      
      if 1.0 * x/s >= p:
          return True
      elif stat.binom_test(x, s, p) > 0.01:
          return True
      return False
docs: function to decide if similarity is
      below cutoff